search for: flashnow

Displaying 1 result from an estimated 1 matches for "flashnow".

Did you mean: flashnew
2007 Apr 21
0
Issues with Functional Tests
...#39;ve come across a few issues I''d like to raise. (1) If a controller sets flash.now[:notice] = "message", then in a functional test I don''t seem to be able to match it. flash.inspect shows "{}" and flash.now.inspect shows "#<ActionController::Flash::FlashNow:0xb63c4ecc @flash={}>" However it''s fine for a normal flash message with a redirect. Is there a way to test directly that a controller has put something into flash.now ? I can workaround by using assert_select "div#notice", /whatever/ although that hard-codes knowl...