I get an error when trying to run my tests in a Rails3 project using MongoDB and Mongoid:
undefined method `use_transactional_fixtures=' for ActiveSupport::TestCase:Class
This is a new project running on 3.0.7. My test_helper.rb file is exactly this:
ENV["RAILS_ENV"] = "test" require File.expand_path('../../config/environment', __FILE__) require 'rails/test_help' class ActiveSupport::TestCase self.use_transactional_fixtures = true end
Is this just an ActiveRecord method? I don't have this problem in other rails projects that also use ActiveSupport :: TestCase. In addition, I use Fabricator to generate my test data, but this does not explain this error.
Doug r
source share