@@ -16,7 +16,7 @@ Feature: have_broadcasted matcher
1616 it "matches with stream name" do
1717 expect {
1818 ActionCable.server.broadcast(
19- "notifications", text: ' Hello!'
19+ "notifications", { text: " Hello!" }
2020 )
2121 }.to have_broadcasted_to("notifications")
2222 end
@@ -34,7 +34,7 @@ Feature: have_broadcasted matcher
3434 it "matches with message" do
3535 expect {
3636 ActionCable.server.broadcast(
37- "notifications", text: ' Hello!'
37+ "notifications", { text: " Hello!" }
3838 )
3939 }.to have_broadcasted_to("notifications").with(text: 'Hello!')
4040 end
@@ -52,7 +52,7 @@ Feature: have_broadcasted matcher
5252 it "matches with message" do
5353 expect {
5454 ActionCable.server.broadcast(
55- "notifications", text: 'Hello!', user_id: 12
55+ "notifications", { text: 'Hello!', user_id: 12 }
5656 )
5757 }.to have_broadcasted_to("notifications").with(a_hash_including(text: 'Hello!'))
5858 end
@@ -70,7 +70,7 @@ Feature: have_broadcasted matcher
7070 it "matches with message" do
7171 expect {
7272 ActionCable.server.broadcast(
73- "notifications", text: 'Hello!', user_id: 12
73+ "notifications", { text: 'Hello!', user_id: 12 }
7474 )
7575 }.to have_broadcasted_to("notifications").with { |data|
7676 expect(data['user_id']).to eq 12
@@ -90,7 +90,7 @@ Feature: have_broadcasted matcher
9090 it "matches with stream name" do
9191 expect {
9292 ActionCable.server.broadcast(
93- "notifications", text: 'Hello!'
93+ "notifications", { text: 'Hello!' }
9494 )
9595 }.to broadcast_to("notifications")
9696 end
0 commit comments