diff --git a/test/fetch_test.rb b/test/fetch_test.rb index 0de80744..7c11297c 100644 --- a/test/fetch_test.rb +++ b/test/fetch_test.rb @@ -282,7 +282,7 @@ def test_fetch_cache_hit_does_not_checkout_database_connection @record.save! record = Item.fetch(@record.id) - ActiveRecord::Base.clear_active_connections!(ActiveRecord::Base.current_role) + ActiveRecord::Base.connection_handler.clear_active_connections!(ActiveRecord::Base.current_role) assert_equal(record, Item.fetch(@record.id))