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:
parent
4346c40434
commit
64d67b23b4
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue