Hi all,
I faced a problem while writing functional tests, where the session
wasn''t storing the flash message, even when the message was shown to
be stored in the flash hash.
See the code :
This wasn''t working :
flash[:notice] = "Hi there"
assert_equal "Hi there", flash[:notice]
But this was :
flash[:notice] = "Hi there"
session["flash"] = {:notice => "Hi there"}
assert_equal "Hi there", flash[:notice]
Did anybody ever faced the same problem ?
~rd
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---