Rails 2.3 – Test Unit – undefined method `fixtures’ (NoMethodError) – undefined method `fixtures’

After switching to Rails 2.3 you might receive the following error messages while executing your TestUnit tests:

undefined method `fixtures' (NoMethodError)

and/org

undefined method `fixtures'

The solution to this is to change the class in

test/test_helper.rb

from Test::Unit::TestCase to ActiveRecord::TestCase.

You will need to apply this change to all Tests inheriting for theĀ  Test::Unit::TestCase class.

Kommentarfunktion ist deaktiviert