Open Victorcorcos opened 4 years ago
@Victorcorcos Yes, you are correct. The behavior of the most recently released version of database_cleaner-mongoid (v1.x) does not match the README on Github because the master branch is tracking the upcoming v2.0 release, which makes some breaking changes, including renaming the Mongoid strategy from :truncation
to :deletion
. If you would like to open PR to update the README with a note about this, I'd merge it. You can copy the notice from the main database_cleaner repo.
On the README file, there is a section that says only the
:deletion
strategy is available onmongoid
. However, it seems like it is quite the opposite, only the:truncation
strategy is available.I tried to use the
:deletion
strategy and the following error message is displayed:Is the README outdated?
Please take a look at the README section below... 👇
Supported Strategies
The mongoid adapter only has one strategy: the deletion strategy.