mirror of
https://github.com/kaminari/kaminari.git
synced 2022-11-09 13:44:37 -05:00
Clean with truncation at the start of each suite.
This keeps things working properly for mongo which does not support transactions. The strategy is still properly configured to use transactions where supported, though, so this should not affect the speed of the test suite for other ORMs.
This commit is contained in:
parent
a821a9ecd7
commit
98018da222
1 changed files with 0 additions and 2 deletions
|
@ -5,8 +5,6 @@ DatabaseCleaner[:mongo_mapper].strategy = :truncation if defined? MongoMapper
|
|||
|
||||
RSpec.configure do |config|
|
||||
config.before :suite do
|
||||
#DatabaseCleaner.clean_with :truncation
|
||||
|
||||
DatabaseCleaner.clean_with :truncation if defined? ActiveRecord
|
||||
DatabaseCleaner.clean_with :truncation if defined? DataMapper
|
||||
DatabaseCleaner.clean_with :truncation if defined? Mongoid
|
||||
|
|
Loading…
Reference in a new issue