Skip to content

Commit

Permalink
Prepare database_cleaner-mongoid for ruby 3
Browse files Browse the repository at this point in the history
- This came up when I was trying to squash some deprecation warnings

DatabaseCleaner/database_cleaner-mongoid#16
  • Loading branch information
tobyprivett committed Jan 26, 2022
1 parent 0389672 commit 02bbc95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/support/database_cleaner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 02bbc95

Please sign in to comment.