Displaying 1 result from an estimated 1 matches for "d0e136db".
Did you mean:
0e1316db
2011 Mar 10
2
Trying to test flash messaging with rspec
Hello every one,
So my this rspec test fails:
[code]
it "should have a welcome message" do
post :create, :user => @attr
response.flash[:success].should eql("Welcome new user!")
end
[/code]
However when I create a new user the flash message does display just as
I had wanted it to.
The controller has this in it:
[code]
def create
@user =