You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DatabaseCleaner was never meant to be used in Rails apps, and while still allowing the truncation and deletion strategies that some may find useful (I can't imagine in which cases though).
One of my motivations for writing this library was to have an easy way to turn on what Rails calls "transactional_fixtures" in my non-rails ActiveRecord projects.
Actually transactional_fixtures have nothing to do with fixtures, and have been recently renamed to transactional_tests to reflect what they are intended to be used for, wrap every example in a transaction and roll it back after example.
DatabaseCleaner was never meant to be used in Rails apps, and while still allowing the
truncation
anddeletion
strategies that some may find useful (I can't imagine in which cases though).Actually
transactional_fixtures
have nothing to do with fixtures, and have been recently renamed totransactional_tests
to reflect what they are intended to be used for, wrap every example in a transaction and roll it back after example.Originally found in https://anti-pattern.com/transactional-fixtures-in-rails
The text was updated successfully, but these errors were encountered: