Flash.now in functional tests


#1

Hi,

Does anybody know how I can access messages set using flash.now in my
functional tests? assert_equal ‘my notice’, flash[:notice] doesn’t. I
guess that makes sense since they’re flushed as soon as the request
request is finished. You can scan the HTML for a particular string you
expect to be displayed, but is there a more direct way of doing this?

Cheers,

Jeroen