From deec90016bac503afa3a0b6ab75c57b059c28c8e Mon Sep 17 00:00:00 2001 From: "shotaro.nasu" Date: Wed, 8 May 2024 10:44:41 +0900 Subject: [PATCH] fix deprecation warning when test model_spec.rb --- spec/octoball/model_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/octoball/model_spec.rb b/spec/octoball/model_spec.rb index 3992c1f..abe8123 100644 --- a/spec/octoball/model_spec.rb +++ b/spec/octoball/model_spec.rb @@ -618,7 +618,7 @@ CustomConnection.create(:value => 'custom value') # This is what Rails, Sidekiq etc call--this normally handles all connection pools in the app - expect { ActiveRecord::Base.clear_active_connections! } + expect { ActiveRecord::Base.connection_handler.clear_active_connections! } .to change { CustomConnection.connection_pool.active_connection? } expect(CustomConnection.connection_pool.active_connection?).to be_falsey