Skip to content

Commit

Permalink
Use truncation for DataMapper
Browse files Browse the repository at this point in the history
  • Loading branch information
Zachary Scott committed Nov 5, 2013
1 parent f4108b3 commit f251f94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/support/database_cleaner.rb
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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
Expand Down

0 comments on commit f251f94

Please sign in to comment.