-
-
Notifications
You must be signed in to change notification settings - Fork 117
Open
Description
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.
Originally found in https://anti-pattern.com/transactional-fixtures-in-rails
savroff
Metadata
Metadata
Assignees
Labels
No labels