Skip to content

Commit

Permalink
tests(compatibility): make tests compatible with ruby 3.0+
Browse files Browse the repository at this point in the history
  • Loading branch information
jmpage committed Dec 11, 2023
1 parent c5c3b4a commit 64c55cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/active_record/postgres_pub_sub/listener_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
end
let!(:listener_thread) do
Thread.new do
listener_loop(listener_options)
listener_loop(**listener_options)
ensure
ActiveRecord::Base.clear_active_connections!
end
Expand All @@ -40,7 +40,7 @@
context "when using 1-arg version of #on_notify" do
let!(:listener_thread) do
Thread.new do
listener_loop(listener_options) do |listener|
listener_loop(**listener_options) do |listener|
listener.on_notify do |payload|
state.count += 1
state.payloads << payload
Expand Down

0 comments on commit 64c55cf

Please sign in to comment.