“undefined method `use_transactional_fixtures=’” after upgrading to Rails 2.3.2 – flip's

“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

5 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 [...]

  3. Thanks! This solved my issue right away.

  4. Hi ,

    I’ve been trying to upgrade a rails 2.1.2 app to 2.3.8. Your solution was really helpful.

    Thanks.

  5. Thank you! It works.

Leave a Reply