Skip to content

Commit b73167f

Browse files
committed
Postgres, fix test failing with undefined clear_active_connections!
1 parent c509713 commit b73167f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/simple.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ def test_fetching_columns_for_nonexistent_table
707707
def test_disconnect
708708
DbType.create! :sample_string => 'sample'
709709
assert_equal 1, DbType.count
710-
ActiveRecord::Base.clear_active_connections!
710+
ActiveRecord::Base.connection_handler.clear_active_connections!
711711
ActiveRecord::Base.connection_pool.disconnect! if ActiveRecord::Base.respond_to?(:connection_pool)
712712
assert !ActiveRecord::Base.connected?
713713
assert_equal 1, DbType.count

0 commit comments

Comments
 (0)