How to test flash.now?

Hi gurus

How to test that controller actions sets flash.now[:info]

I cannot test it from standard functional TestCase since it is
eradicated after action execution.

Standard flash hash can be tested freely within TestCase… Eg.
flash[:info]

Thanks in advance
Szczepiq

flash.now is incredibly useful as a standard mechanism for conveying
controller errors (as opposed to model errors) to forms, and I’d really
love to be able to write functional tests concerning its contents.
Please let me know if there’s some way to access the flash.now hash in a
functional test after a request has completed.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs