“undefined method `use_transactional_fixtures=’” after upgrading to Rails 2.3.2

After upgrading to Rails 2.3.2 I’ve tried to run the testcases. The following error occured:

test/test_helper.rb:22: undefined method `use_transactional_fixtures=’ for Test::Unit::TestCase:Class (NoMethodError)

Solution:

Test::Unit::TestCase changed to ActiveSupport::TestCase, so simply edit your test/test_helper and change the name of the class.

Keywords: functional test problems

2 Responses to ““undefined method `use_transactional_fixtures=’” after upgrading to Rails 2.3.2”

  1. Thanks, was wondering what was going on. BTW, there’s a colon missing above– it’s ActiveSupport::TestCase

  2. [...] What’s going on? After a little Googling, and it turns out that in Rails 2.3.2, “Test::Unit::TestCase changed to [...]

Leave a Reply


linkboost