@@ -16,7 +16,7 @@ Feature: have_broadcasted matcher
16
16
it "matches with stream name" do
17
17
expect {
18
18
ActionCable.server.broadcast(
19
- "notifications", text: ' Hello!'
19
+ "notifications", { text: " Hello!" }
20
20
)
21
21
}.to have_broadcasted_to("notifications")
22
22
end
@@ -34,7 +34,7 @@ Feature: have_broadcasted matcher
34
34
it "matches with message" do
35
35
expect {
36
36
ActionCable.server.broadcast(
37
- "notifications", text: ' Hello!'
37
+ "notifications", { text: " Hello!" }
38
38
)
39
39
}.to have_broadcasted_to("notifications").with(text: 'Hello!')
40
40
end
@@ -52,7 +52,7 @@ Feature: have_broadcasted matcher
52
52
it "matches with message" do
53
53
expect {
54
54
ActionCable.server.broadcast(
55
- "notifications", text: 'Hello!', user_id: 12
55
+ "notifications", { text: 'Hello!', user_id: 12 }
56
56
)
57
57
}.to have_broadcasted_to("notifications").with(a_hash_including(text: 'Hello!'))
58
58
end
@@ -70,7 +70,7 @@ Feature: have_broadcasted matcher
70
70
it "matches with message" do
71
71
expect {
72
72
ActionCable.server.broadcast(
73
- "notifications", text: 'Hello!', user_id: 12
73
+ "notifications", { text: 'Hello!', user_id: 12 }
74
74
)
75
75
}.to have_broadcasted_to("notifications").with { |data|
76
76
expect(data['user_id']).to eq 12
@@ -90,7 +90,7 @@ Feature: have_broadcasted matcher
90
90
it "matches with stream name" do
91
91
expect {
92
92
ActionCable.server.broadcast(
93
- "notifications", text: 'Hello!'
93
+ "notifications", { text: 'Hello!' }
94
94
)
95
95
}.to broadcast_to("notifications")
96
96
end
0 commit comments