Skip to content
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

Rails 4 2 11 3 upgrade #117

Draft
wants to merge 59 commits into
base: main
Choose a base branch
from

Conversation

tsankaste
Copy link

Maybe should update bundler as well

hank-spokeo and others added 30 commits September 10, 2019 06:39
Pretty difficult to write an ActiveRecord 5 spec when the project is
running ActiveRecord 3. DatabaseCleaner::ActiveRecord::Base#exclusion_condition
wasn't previously tested anyways. ¯\_(ツ)_/¯
…pendency

Remove undeclared active_support dependency. Fixes: #611
botandrose-machine and others added 29 commits April 4, 2020 10:12
Currently, the following code doesn't work:

```ruby
DatabaseCleaner[:mongo].strategy = :truncation

RSpec.configure do |config|
  config.around do |example|
    DatabaseCleaner.cleaning do
      example.run
    end
  end
end
```

The causes are:

1. `DatabaseCleaner::ORMAutodetector` doesn't consider `:mongo` option
2. `DatabaseCleaner::Mongo::Truncation` doesn't respond to `#cleaning`
So that it recommends a more equivalent alternative.
…_model

[v1.99] Deprecate :connection and :model in favor of :db
…etion_deprecation

[v1.99] Rename truncation to deletion deprecations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.