We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a15832b commit b1d04fbCopy full SHA for b1d04fb
spec/flipper/adapters/active_record_spec.rb
@@ -240,7 +240,7 @@
240
241
after do
242
# Disconnect role-based connections to avoid interfering with database cleanup
243
- ActiveRecord::Base.connection_handler.clear_all_connections!
+ clear_all_connections!
244
end
245
246
let(:feature_class) do
@@ -373,4 +373,9 @@ def clear_active_connections!
373
method = ActiveRecord::Base.connection_handler.method(:clear_active_connections!)
374
method.arity == 0 ? method.call : method.call(:all)
375
376
+
377
+ def clear_all_connections!
378
+ method = ActiveRecord::Base.connection_handler.method(:clear_all_connections!)
379
+ method.arity == 0 ? method.call : method.call(:all)
380
+ end
381
0 commit comments