Open skatkov opened 9 years ago
The same Q. I have the same error. Gem works fine, the tests pass quickly. But where there is a before(:all) tests fails
@DmitryKK there is a good workaround in one of opened issues https://github.com/amatsuda/database_rewinder/issues/28
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?