Open brauliobo opened 7 years ago
I just ran into the same problem. In my case it's because Sequel::DATABASES
was empty when calling DatabaseCleaner.start
.
Thus I simply had to initialise the connection to my database before calling DatabaseCleaner.start
Ran into this as well. Updated implementation and it is working as expected:
class Minitest::Spec
before :each do
DatabaseCleaner[:sequel].start
end
after :each do
DatabaseCleaner[:sequel].clean
end
end
@jeffvincent It sounds like maybe this situation could be addressed in the README? What do you think?
Totally agree! tbh, I wasn't confident enough in my solution. Was expecting to hear about all kinds of terrible externalities I caused by doing things this way :)
An update to the README would certainly help future-me. I'm happy to create PR, if you think that's a good idea.
@jeffvincent Yes, please do!
Backtrace:
Multiple threads being used