[rspec-users] Rails 3, Rspec 2 - flash notice
dchelimsky at gmail.com
Tue Apr 27 17:59:37 EDT 2010
On Apr 27, 2010, at 4:48 PM, Andrei Erdoss wrote:
> 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?
Are you using rspec-rails-2.0.0.beta.8?
More information about the rspec-users