-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not compatible with ruby 3.0 #16
Comments
@rubydev Yes, that syntax no longer works in Ruby 3.0... you'll need to pass an array instead: config.before(:suite) do
DatabaseCleaner[:mongoid].strategy = [:deletion, except: %w[roles exchange_rates]]
end I've updated the README to that syntax, while I was at it. I wonder if its possible to do a deprecation warning in < Ruby 3.0, and a more helpful error message in >= Ruby 3.0? |
@botandrose Hello, thank you! But after change to array, result is same:
Any idea why it doesn't work? Thank you! |
same here, any solutions? |
found a solution, works for me:
|
Thank you, that works for me too! |
- This came up when I was trying to squash some deprecation warnings DatabaseCleaner/database_cleaner-mongoid#16
Until this is fixed, this setting seems to work: Cucumber::Rails::Database.autorun_database_cleaner = false |
After upgrade Ruby to version 3.0.1 code is crashing:
It looks, that it is related with DatabaseCleaner/database_cleaner#677
The text was updated successfully, but these errors were encountered: