Skip to content

Commit 02bbc95

Browse files
committed
Prepare database_cleaner-mongoid for ruby 3
- This came up when I was trying to squash some deprecation warnings DatabaseCleaner/database_cleaner-mongoid#16
1 parent 0389672 commit 02bbc95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/support/database_cleaner.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
RSpec.configure do |config|
77
# Clean the registrations and users databases before running tests
88
config.before(:suite) do
9-
DatabaseCleaner[:mongoid].strategy = :deletion
9+
DatabaseCleaner[:mongoid].strategy = [:deletion]
1010
DatabaseCleaner[:mongoid, { db: :users }].strategy = :deletion
1111

1212
DatabaseCleaner.clean

0 commit comments

Comments
 (0)