Skip to content

Object's created in before(:all) are removed #32

@skatkov

Description

@skatkov

It seems like a common pattern for DatabaseCleaner to fasten up your tests.
Some objects that stay immutable during testing, get pulled into before(all) and reused in tests, so they don't get recreated all the time.

This pattern doesn't seem to be working with DatabaseRewinder gem, i've noticed that object in before(:all) get cleaned after first test run.

Any alternatives to this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions