This gets Mongo and DataMapper specs running

but newer versions of AR, and incidentally Sinatra specs still fail.
This commit is contained in:
Zachary Scott 2013-08-10 23:44:44 -04:00
parent 4346c40434
commit 64d67b23b4
1 changed files with 6 additions and 1 deletions

View File

@ -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