Skip to content

Commit 6e9675c

Browse files
committed
Fix clear_all_connections! NoMethodError
This fixes the following error when running Action Cable tests: ``` NoMethodError: undefined method `clear_all_connections!' for #<ActiveRecord::ConnectionAdapters::PostgreSQLAdapter actioncable/test/subscription_adapter/postgresql_test.rb:38:in `teardown' ```
1 parent 4d102eb commit 6e9675c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

actioncable/test/subscription_adapter/postgresql_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def setup
3535
def teardown
3636
super
3737

38-
ActiveRecord::Base.connection.clear_all_connections!
38+
ActiveRecord::Base.connection_handler.clear_all_connections!
3939
end
4040

4141
def cable_config

0 commit comments

Comments
 (0)