Use the mongo_mapper and cucumber Cleaner strategy
This commit is contained in:
parent
9038d6b0ed
commit
5f2d4ba073
1 changed files with 5 additions and 6 deletions
|
|
@ -37,10 +37,9 @@ ActionController::Base.allow_rescue = false
|
|||
|
||||
# How to clean your database when transactions are turned off. See
|
||||
# http://github.com/bmabey/database_cleaner for more info.
|
||||
if defined?(ActiveRecord::Base)
|
||||
begin
|
||||
require 'database_cleaner'
|
||||
DatabaseCleaner.strategy = :truncation
|
||||
rescue LoadError => ignore_if_database_cleaner_not_present
|
||||
end
|
||||
begin
|
||||
require 'database_cleaner'
|
||||
require 'database_cleaner/cucumber'
|
||||
DatabaseCleaner.strategy = :truncation
|
||||
DatabaseCleaner.orm = "mongo_mapper"
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue