1
0
Fork 0
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:
Whitney Young 2013-10-25 12:44:05 -03:00
parent a821a9ecd7
commit 98018da222

View file

@ -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