1
0
Fork 0
mirror of https://github.com/kaminari/kaminari.git synced 2022-11-09 13:44:37 -05:00

Move mongoid cleaner settings to kaminari-mongoid gem

This commit is contained in:
Akira Matsuda 2016-04-02 20:50:32 +09:00
parent 0bf21c37a9
commit 5adc533233

View file

@ -1,10 +1,8 @@
DatabaseCleaner[:active_record].strategy = :transaction if defined? ActiveRecord
DatabaseCleaner[:mongoid].strategy = :truncation if defined? Mongoid
RSpec.configure do |config|
config.before :suite do
DatabaseCleaner.clean_with :truncation if defined? ActiveRecord
DatabaseCleaner.clean_with :truncation if defined? Mongoid
end
config.before :each do
DatabaseCleaner.start