Skip to content

A platform for community discussion. Free, open, simple.

DEV: Raise error with stats.

Guo Xiang Tan4ddd8fad20d3
diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb
index 13673195219..c820d2f4b21 100644
--- a/spec/rails_helper.rb
+++ b/spec/rails_helper.rb
@@ -135,7 +135,9 @@ RSpec.configure do |config|
unfreeze_time
ActionMailer::Base.deliveries.clear
- raise if ActiveRecord::Base.connection_pool.stat[:busy] > 1
+ if ActiveRecord::Base.connection_pool.stat[:busy] > 1
+ raise ActiveRecord::Base.connection_pool.stat.inspect
+ end
end
config.before :each do |x|