Open Paxa opened 9 years ago
Nice tip. I'm trying this out in y project as well, have best things out both gems here ;)
What does the DatabaseRewinder.cleaners.each {|c| c.send(:reset) }
line do?
Oh does it reset the tracked data as to which tables were mutated?
When I change to database rewinder our tests become slower, because in many cases we used transaction strategy.
Here is solution that worked for us: Use
DatabaseRewinder
only for capybara+js examples, for others -DatabaseCleaner
with db transactions