A platform for community discussion. Free, open, simple.
DEV: Raise an error if any test finishes with more than 1 busy AR connection.
Guo Xiang Tanbdf3da8f80b7
diff --git a/spec/rails_helper.rb b/spec/rails_helper.rbindex 96495386b61..0bd62cd22b0 100644--- a/spec/rails_helper.rb+++ b/spec/rails_helper.rb@@ -133,6 +133,8 @@ RSpec.configure do |config|endunfreeze_time++ raise if ActiveRecord::Base.connection_pool.stat[:busy] > 1endconfig.before :each do |x|