Skip to content

Use Rails' transactional fixtures instead of database cleaner #114

@bmulholland

Description

@bmulholland

This builds on #26, I suppose

Rails has built-in transactional fixtures, which should mean database cleaner is never needed: https://anti-pattern.com/transactional-fixtures-in-rails

As far as I can tell, this just means including ActiveRecord::TestFixtures, then calling setup_fixtures and teardown_fixtures. See https://github.com/rails/rails/blob/812bae8167488ee5984043ef71125e055352b873/activerecord/lib/active_record/test_fixtures.rb

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions