undefined method `use_transactional_fixtures=’ for Test::Unit::TestCase:Class

// April 17th, 2009 // Blog

If you have upgraded to Rails 2.3 and come across this error:
undefined method `use_transactional_fixtures=’ for Test::Unit::TestCase:Class

It probably means you have tests that were generated in an older version of Rails. Just open up test/test_helper.rb and change this:


class Test::Unit::TestCase

To this:


class ActiveSupport::TestCase

Voila!

2 Responses to “undefined method `use_transactional_fixtures=’ for Test::Unit::TestCase:Class”

  1. irgeek says:

    wow! Thx my friend! Just what i needed!

  2. Larry says:

    Thanks for taking the time to post this tasty little tidbit!

Leave a Reply