[rspec-users] flash.now

Yi hayafirst at gmail.com
Sat Mar 28 00:17:23 EDT 2009


Hi,

How can I test flash.now[:key] is being set in a controller test? Both
flash[:key] and flash.now[:key].should == message didn't work

I can use response.session["flash"][:key].should == message . Just looks bad

Thanks

Yi

-- 
http://yiwenandsoftware.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20090327/e380216b/attachment.html>


More information about the rspec-users mailing list