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