Michael MacDonald

Archive for the ‘Testing’ Category

$600 Mistake

In Business, Testing on August 12, 2009 at 8:00 am

Do you test? Do you test all the time (TATFT)? Can you afford to lose $600? Read the rest of this entry »

About these ads

Use response.capture instead

In Rails, Testing on July 15, 2009 at 8:00 am

Recently, 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"

Read the rest of this entry »

Testing flash.now with RSpec

In Rails, Testing on July 12, 2009 at 9:56 pm

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!

Read the rest of this entry »

Follow

Get every new post delivered to your Inbox.