[rspec-users] Rails 3, Rspec 2 - flash notice

Andrei Erdoss erdoss at gmail.com
Tue Apr 27 17:48:55 EDT 2010


I also tried testing for the flash notice being set, but it's not working.

it "sets a flash[:notice] message" do
  post :create
  flash[:notice].should == "The message was saved successfully."

this is the line in the controller that's setting the notice.

redirect_to messages_path, :notice =>  "The message was saved successfully."

Anybody have some insight on this?

Andrei Erdoss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20100427/cbd0d212/attachment.html>

More information about the rspec-users mailing list