From 3e85bd20199d4e1ca9248bab3f1f3cbf2c4a36af Mon Sep 17 00:00:00 2001 From: Jon Rowe Date: Sat, 7 Sep 2024 11:17:41 +0100 Subject: [PATCH] Remove accidentally commited spec and excess ws --- lib/rspec/rails/matchers/action_cable.rb | 1 - .../rails/matchers/action_cable/have_broadcasted_to_spec.rb | 3 --- 2 files changed, 4 deletions(-) diff --git a/lib/rspec/rails/matchers/action_cable.rb b/lib/rspec/rails/matchers/action_cable.rb index 978fcca0a..d33de16bf 100644 --- a/lib/rspec/rails/matchers/action_cable.rb +++ b/lib/rspec/rails/matchers/action_cable.rb @@ -47,7 +47,6 @@ module ActionCable # expect { # ActionCable.server.broadcast "messages", text: 'Hi!' # }.to have_broadcasted_to("messages").with(text: 'Hi!') - def have_broadcasted_to(target = nil) check_action_cable_adapter diff --git a/spec/rspec/rails/matchers/action_cable/have_broadcasted_to_spec.rb b/spec/rspec/rails/matchers/action_cable/have_broadcasted_to_spec.rb index 47648ff1a..7e9470b3f 100644 --- a/spec/rspec/rails/matchers/action_cable/have_broadcasted_to_spec.rb +++ b/spec/rspec/rails/matchers/action_cable/have_broadcasted_to_spec.rb @@ -246,9 +246,6 @@ def broadcast(stream, msg) it "has an appropriate description including the expected contents when qualified with `#with`" do expect(have_broadcasted_to("my_stream").from_channel(channel).with("hello world").description).to eq("have broadcasted exactly 1 messages to my_stream with \"hello world\"") end - - it { expect("foo").to eq("foo") } - it "has an appropriate description including the matcher's description when qualified with `#with` and a composable matcher" do expect( have_broadcasted_to("my_stream")