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

This gets Mongo and DataMapper specs running

but newer versions of AR, and incidentally Sinatra specs still fail.
This commit is contained in:
Zachary Scott 2013-08-10 23:44:44 -04:00
parent 4346c40434
commit 64d67b23b4

View file

@ -5,7 +5,12 @@ DatabaseCleaner[:mongo_mapper].strategy = :truncation if defined? MongoMapper
RSpec.configure do |config| RSpec.configure do |config|
config.before :suite do config.before :suite do
DatabaseCleaner.clean_with :transaction #DatabaseCleaner.clean_with :truncation
DatabaseCleaner.clean_with :truncation if defined? ActiveRecord
DatabaseCleaner.clean_with :transaction if defined? DataMapper
DatabaseCleaner.clean_with :truncation if defined? Mongoid
DatabaseCleaner.clean_with :truncation if defined? MongoMapper
end end
config.before :each do config.before :each do
DatabaseCleaner.start DatabaseCleaner.start