From 64c55cfb240aa65f6ab0d2dd837e2beecc409481 Mon Sep 17 00:00:00 2001 From: Jennifer Page Date: Fri, 8 Dec 2023 10:08:32 -0500 Subject: [PATCH] tests(compatibility): make tests compatible with ruby 3.0+ --- spec/active_record/postgres_pub_sub/listener_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/active_record/postgres_pub_sub/listener_spec.rb b/spec/active_record/postgres_pub_sub/listener_spec.rb index bfc03ee..81e03a3 100644 --- a/spec/active_record/postgres_pub_sub/listener_spec.rb +++ b/spec/active_record/postgres_pub_sub/listener_spec.rb @@ -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 @@ -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