I'm running around 2000 tests with rspec and ActiveRecord. Every now and then, let's say one out of 5 test suite runs (i.e. 1 out of 10,000 tests), a random test fails with the undefined method 'rollback' for nil:NilClass:
Failure/Error:
DatabaseCleaner.cleaning do
example.run
end
NoMethodError:
undefined method `rollback' for nil:NilClass
I'm using this configuration (taken from the readme)
DatabaseCleaner.strategy = :transaction
DatabaseCleaner.clean_with(:truncation)
I'm running around 2000 tests with
rspecand ActiveRecord. Every now and then, let's say one out of 5 test suite runs (i.e. 1 out of 10,000 tests), a random test fails with theundefined method 'rollback' for nil:NilClass:I'm using this configuration (taken from the readme)