Do you test? Do you test all the time (TATFT)? Can you afford to lose $600? Read the rest of this entry »
Archive for the ‘Testing’ Category
Use response.capture instead
In Rails, Testing on July 15, 2009 at 8:00 amRecently, I upgraded an app from Rails 2.1.0 to Rails 2.3.2. First, I upgraded rspec and rspec-rails to 1.2.7, raked my specs and they all passed. But after I upgraded to Rails 2.3.2, one particular spec failed with the following error message:
"undefined method downcase' for :extra_info:Symbol"
Testing flash.now with RSpec
In Rails, Testing on July 12, 2009 at 9:56 pmA 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!