diff --git a/spec/support/database_cleaner.rb b/spec/support/database_cleaner.rb index 0c2297e..d95b6e2 100644 --- a/spec/support/database_cleaner.rb +++ b/spec/support/database_cleaner.rb @@ -5,7 +5,12 @@ DatabaseCleaner[:mongo_mapper].strategy = :truncation if defined? MongoMapper RSpec.configure do |config| config.before :suite do - DatabaseCleaner.clean_with :transaction + #DatabaseCleaner.clean_with :truncation + + DatabaseCleaner.clean_with :truncation if defined? ActiveRecord + DatabaseCleaner.clean_with :transaction if defined? DataMapper + DatabaseCleaner.clean_with :truncation if defined? Mongoid + DatabaseCleaner.clean_with :truncation if defined? MongoMapper end config.before :each do DatabaseCleaner.start