diff --git a/spec/support/database_cleaner.rb b/spec/support/database_cleaner.rb index df9e8ae59..67bd8fda1 100644 --- a/spec/support/database_cleaner.rb +++ b/spec/support/database_cleaner.rb @@ -6,7 +6,7 @@ RSpec.configure do |config| # Clean the registrations and users databases before running tests config.before(:suite) do - DatabaseCleaner[:mongoid].strategy = :deletion + DatabaseCleaner[:mongoid].strategy = [:deletion] DatabaseCleaner[:mongoid, { db: :users }].strategy = :deletion DatabaseCleaner.clean