[rspec-users] Testing update, flash[:error]
lists at ruby-forum.com
Mon Nov 22 09:00:16 EST 2010
I'm trying to write a failure test for updating a model, but the
flash[:error] seems to be causing a problem.
All code can be found here:
I've also tried using regular expressions, instead of:
flash[:error].should == "Name can't be blank"
flash[:error].should =~ /Name can't be blank/i
Thank you in advance!!
Posted via http://www.ruby-forum.com/.
More information about the rspec-users