Mar 18, 2009

undefined method `use_transactional_fixtures=' in Rails 2.3

I'm trying to be better about testing these days so when I upgraded to Ruby on Rails 2.3 the other day I was a bit dismayed to be getting errors with my tests. They went something like this:


undefined method `use_transactional_fixtures='


Ug. I generated a new Rails 2.3 app to find out what was going on.


Turns out the problem is in the test_helper.rb file. You'll need to swap out the old class definition with this:

class ActiveSupport::TestCase


Once you do that your tests should run again (assuming they did before hand).

No comments:

Post a Comment