DEV: Raise an error if any test finishes with more than 1 busy AR connection.

This commit is contained in:
Guo Xiang Tan 2018-07-11 09:54:01 +08:00
parent a17f5052a3
commit bdf3da8f80
1 changed files with 2 additions and 0 deletions

View File

@ -133,6 +133,8 @@ RSpec.configure do |config|
end
unfreeze_time
raise if ActiveRecord::Base.connection_pool.stat[:busy] > 1
end
config.before :each do |x|