Skip to content

Commit

Permalink
Merge pull request #11 from allister0098/fix_deprecation_warning_when…
Browse files Browse the repository at this point in the history
…_test

fix deprecation warning when test model_spec.rb
  • Loading branch information
fumihumi authored May 8, 2024
2 parents c15eca9 + deec900 commit c176091
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/octoball/model_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c176091

Please sign in to comment.