From f251f947120d737b7b50fa8c64dd5eb1666138f9 Mon Sep 17 00:00:00 2001 From: Zachary Scott Date: Mon, 4 Nov 2013 20:33:06 -0500 Subject: [PATCH] Use truncation for DataMapper --- spec/support/database_cleaner.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/support/database_cleaner.rb b/spec/support/database_cleaner.rb index d95b6e2fd..c75f50014 100644 --- a/spec/support/database_cleaner.rb +++ b/spec/support/database_cleaner.rb @@ -1,5 +1,5 @@ DatabaseCleaner[:active_record].strategy = :transaction if defined? ActiveRecord -DatabaseCleaner[:data_mapper].strategy = :transaction if defined? DataMapper +DatabaseCleaner[:data_mapper].strategy = :truncation if defined? DataMapper DatabaseCleaner[:mongoid].strategy = :truncation if defined? Mongoid DatabaseCleaner[:mongo_mapper].strategy = :truncation if defined? MongoMapper @@ -8,7 +8,7 @@ #DatabaseCleaner.clean_with :truncation DatabaseCleaner.clean_with :truncation if defined? ActiveRecord - DatabaseCleaner.clean_with :transaction if defined? DataMapper + DatabaseCleaner.clean_with :truncation if defined? DataMapper DatabaseCleaner.clean_with :truncation if defined? Mongoid DatabaseCleaner.clean_with :truncation if defined? MongoMapper end