A recent Rails upgrade created some failing specs. One spec in particular caused me some frustration. It was a simple controller spec that was verifying the message of a flash.now warning. It worked find in Rails 2.1.0 but was failing in Rails 2.3.2. The solution was to simply inspect the response object!
Instead of:
flash[:warning].should eql('Are you sure you should be doing that?')
use:
response.flash[:warning].should eql('Are you sure you should be doing that?')
Thumbs up to my work colleague Abhijat for that tip!