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:
parent
0bf21c37a9
commit
5adc533233
1 changed files with 0 additions and 2 deletions
|
@ -1,10 +1,8 @@
|
||||||
DatabaseCleaner[:active_record].strategy = :transaction if defined? ActiveRecord
|
DatabaseCleaner[:active_record].strategy = :transaction if defined? ActiveRecord
|
||||||
DatabaseCleaner[:mongoid].strategy = :truncation if defined? Mongoid
|
|
||||||
|
|
||||||
RSpec.configure do |config|
|
RSpec.configure do |config|
|
||||||
config.before :suite do
|
config.before :suite do
|
||||||
DatabaseCleaner.clean_with :truncation if defined? ActiveRecord
|
DatabaseCleaner.clean_with :truncation if defined? ActiveRecord
|
||||||
DatabaseCleaner.clean_with :truncation if defined? Mongoid
|
|
||||||
end
|
end
|
||||||
config.before :each do
|
config.before :each do
|
||||||
DatabaseCleaner.start
|
DatabaseCleaner.start
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue