test/controller_methods_test.rb in airbrake-4.3.7 vs test/controller_methods_test.rb in airbrake-4.3.8

- old
+ new

@@ -122,12 +122,11 @@ assert_equal( {:id => 321}, ab_data[:user]) end should "release DB connections" do - ::POOL = Object.new - module ::ActiveRecord; class Base; def self.connection_pool; ::POOL; end; end; end - ::POOL.expects(:release_connection) + module ::ActiveRecord; class Base; end; end + ::ActiveRecord::Base.expects(:clear_active_connections!) CurrentUserTestController.new.airbrake_request_data end end