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