mirror of
https://github.com/kaminari/kaminari.git
synced 2022-11-09 13:44:37 -05:00
Use truncation for DataMapper
This commit is contained in:
parent
f4108b36c2
commit
f251f94712
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
DatabaseCleaner[:active_record].strategy = :transaction if defined? ActiveRecord
|
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[:mongoid].strategy = :truncation if defined? Mongoid
|
||||||
DatabaseCleaner[:mongo_mapper].strategy = :truncation if defined? MongoMapper
|
DatabaseCleaner[:mongo_mapper].strategy = :truncation if defined? MongoMapper
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ RSpec.configure do |config|
|
||||||
#DatabaseCleaner.clean_with :truncation
|
#DatabaseCleaner.clean_with :truncation
|
||||||
|
|
||||||
DatabaseCleaner.clean_with :truncation if defined? ActiveRecord
|
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? Mongoid
|
||||||
DatabaseCleaner.clean_with :truncation if defined? MongoMapper
|
DatabaseCleaner.clean_with :truncation if defined? MongoMapper
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue