Rails error: undefined method `use_transactional_fixtures=`

when running tests, I’m getting an error: undefined method `use_transactional_fixtures=` for Test::Unit::testCase:Class (NoMethodError)

This happens if you generated your tests before Rails 2.3

go to test/test_helper.rb and change:

class Test::Unit::testCase

to:

class ActiveSupport::TestCase

Leave a Reply

OR LOG IN WITH




Your email address will not be published. Required fields are marked *