Forum: Ruby on Rails Flash Problem In Functional Test

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
E42753083578369d837e61686a3cd827?d=identicon&s=25 Peter Wood (woodzer)
on 2006-06-07 21: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.

Peter
Db303dc84d03a992b33cd3ac978f89ae?d=identicon&s=25 Benjamin Curtis (Guest)
on 2006-06-08 01: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: http://blog.craz8.com/
articles/2006/05/11/rails-functional-testing-quirks-with-flash-and-
session

--
Benjamin Curtis
http://www.bencurtis.com/
http://www.tesly.com/ -- Collaborative test case management
http://www.agilewebdevelopment.com/ -- Resources for the Rails community
This topic is locked and can not be replied to.