Forum: Ruby on Rails Flash Problem In Functional Test

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Peter W. (Guest)
on 2006-06-07 23:34
I'm having some trouble with functional tests for a Rails application. I
recently upgraded to version 1.1.2 of Rails and I have since noticed
that I have a problem with flash notices in my functional tests. I'm not
saying that the upgrade is necessarily the cause but the tests were
working before. When I run the tests now and I expect the flash to
contain a particular message I find that it's completely empty. I know
the method that inserts the message into the flash is getting called and
the statement that makes the insert is being executed - its just not
there when the functional test examines the flash.

This may be something completely obvious that I've missed (and if it is
I apologise in advance) but I've searched for a solution and so far have
found nothing. Any help would be greatly appreciated.

Benjamin C. (Guest)
on 2006-06-08 03:38
(Received via mailing list)
You have probably encountered the behavior that has spawned a number
of bugs in the tracker and this blog post:

Benjamin C. -- Collaborative test case management -- Resources for the Rails community
This topic is locked and can not be replied to.