@@ -16,9 +16,6 @@ describe Cable::Connection do
1616
1717 connection.close
1818 socket.close
19- Cable ::Logger .messages.should contain(" ChatChannel is streaming from chat_1" )
20- Cable ::Logger .messages.should contain(" ChatChannel is transmitting the subscription confirmation" )
21- Cable ::Logger .messages.should contain(" ChatChannel stopped streaming from {\" channel\" :\" ChatChannel\" ,\" room\" :\" 1\" }" )
2219 end
2320 end
2421
@@ -43,9 +40,6 @@ describe Cable::Connection do
4340
4441 connection.close
4542 socket.close
46- Cable ::Logger .messages.should contain(" ChatChannel is streaming from chat_1" )
47- Cable ::Logger .messages.should contain(" ChatChannel is transmitting the subscription confirmation" )
48- Cable ::Logger .messages.should contain(" ChatChannel stopped streaming from {\" channel\" :\" ChatChannel\" ,\" room\" :\" 1\" ,\" person\" :{\" name\" :\" Foo\" ,\" age\" :32,\" boom\" :\" boom\" }}" )
4943 end
5044 end
5145
@@ -58,9 +52,6 @@ describe Cable::Connection do
5852
5953 connection.close
6054 socket.close
61- Cable ::Logger .messages.should contain(" ChatChannel is streaming from chat_1" )
62- Cable ::Logger .messages.should contain(" ChatChannel is transmitting the subscription confirmation" )
63- Cable ::Logger .messages.should contain(" ChatChannel stopped streaming from {\" channel\" :\" ChatChannel\" ,\" room\" :\" 1\" ,\" person\" :{\" name\" :\" Celso\" ,\" age\" :32,\" boom\" :\" boom\" }}" )
6455 end
6556 end
6657
@@ -94,10 +85,6 @@ describe Cable::Connection do
9485
9586 connection.close
9687 socket.close
97- Cable ::Logger .messages.should contain(" ChatChannel is streaming from chat_1" )
98- Cable ::Logger .messages.should contain(" ChatChannel is transmitting the subscription confirmation" )
99- Cable ::Logger .messages.should contain(" ChatChannel stopped streaming from {\" channel\" :\" ChatChannel\" ,\" room\" :\" 1\" }" )
100- Cable ::Logger .messages.should contain(" ChatChannel is transmitting the unsubscribe confirmation" )
10188 end
10289 end
10390 end
@@ -132,7 +119,6 @@ describe Cable::Connection do
132119 socket.messages.size.should eq(0 )
133120
134121 # we check only the first that is the one we care about, the others make no sense to our test
135- Cable ::Logger .messages.should contain(" An unauthorized connection attempt was rejected" )
136122 socket.closed?.should be_truthy
137123
138124 Cable .server.connections.should eq({} of String => Cable ::Connection )
@@ -151,9 +137,6 @@ describe Cable::Connection do
151137
152138 connection.close
153139 socket.close
154- Cable ::Logger .messages.should contain(" ChatChannel is streaming from chat_1" )
155- Cable ::Logger .messages.should contain(" ChatChannel is transmitting the subscription confirmation" )
156- Cable ::Logger .messages.should contain(" ChatChannel stopped streaming from {\" channel\" :\" ChatChannel\" ,\" room\" :\" 1\" }" )
157140 end
158141 end
159142
@@ -169,12 +152,6 @@ describe Cable::Connection do
169152
170153 connection.close
171154 socket.close
172- Cable ::Logger .messages.should contain(" ChatChannel is streaming from chat_1" )
173- Cable ::Logger .messages.should contain(" ChatChannel is transmitting the subscription confirmation" )
174- Cable ::Logger .messages.should contain(" ChatChannel#receive({\" message\" => \" Hello\" })" )
175- Cable ::Logger .messages.should contain(" [ActionCable] Broadcasting to chat_1: {\" message\" => \" Hello\" , \" current_user\" => \" 98\" }" )
176- Cable ::Logger .messages.should contain(" ChatChannel transmitting {\" message\" => \" Hello\" , \" current_user\" => \" 98\" } (via streamed from chat_1)" )
177- Cable ::Logger .messages.should contain(" ChatChannel stopped streaming from {\" channel\" :\" ChatChannel\" ,\" room\" :\" 1\" }" )
178155 end
179156 end
180157
@@ -190,12 +167,6 @@ describe Cable::Connection do
190167
191168 connection.close
192169 socket.close
193- Cable ::Logger .messages.should contain(" ChatChannel is streaming from chat_1" )
194- Cable ::Logger .messages.should contain(" ChatChannel is transmitting the subscription confirmation" )
195- Cable ::Logger .messages.should contain(" ChatChannel#perform(\" invite\" , {\" invite_id\" => \" 4\" })" )
196- Cable ::Logger .messages.should contain(" [ActionCable] Broadcasting to chat_1: {\" performed\" => \" invite\" , \" params\" => \" 4\" }" )
197- Cable ::Logger .messages.should contain(" ChatChannel transmitting {\" performed\" => \" invite\" , \" params\" => \" 4\" } (via streamed from chat_1)" )
198- Cable ::Logger .messages.should contain(" ChatChannel stopped streaming from {\" channel\" :\" ChatChannel\" ,\" room\" :\" 1\" }" )
199170 end
200171 end
201172 end
@@ -211,9 +182,6 @@ describe Cable::Connection do
211182
212183 connection.close
213184 socket.close
214- Cable ::Logger .messages.should contain(" ChatChannel is streaming from chat_1" )
215- Cable ::Logger .messages.should contain(" ChatChannel is transmitting the subscription confirmation" )
216- Cable ::Logger .messages.should contain(" ChatChannel stopped streaming from {\" channel\" :\" ChatChannel\" ,\" room\" :\" 1\" }" )
217185 end
218186 end
219187 end
@@ -231,10 +199,6 @@ describe Cable::Connection do
231199
232200 connection.close
233201 socket.close
234- Cable ::Logger .messages.should contain(" ChatChannel is streaming from chat_1" )
235- Cable ::Logger .messages.should contain(" ChatChannel is transmitting the subscription confirmation" )
236- Cable ::Logger .messages.should contain(" ChatChannel transmitting {\" hello\" => \" Broadcast!\" } (via streamed from chat_1)" )
237- Cable ::Logger .messages.should contain(" ChatChannel stopped streaming from {\" channel\" :\" ChatChannel\" ,\" room\" :\" 1\" }" )
238202 end
239203 end
240204 end
@@ -253,11 +217,6 @@ describe Cable::Connection do
253217
254218 connection.close
255219 socket.close
256- Cable ::Logger .messages.should contain(" ChatChannel is streaming from chat_1" )
257- Cable ::Logger .messages.should contain(" ChatChannel is transmitting the subscription confirmation" )
258- Cable ::Logger .messages.should contain(" [ActionCable] Broadcasting to chat_1: <turbo-stream></turbo-stream>" )
259- Cable ::Logger .messages.should contain(" ChatChannel transmitting <turbo-stream></turbo-stream> (via streamed from chat_1)" )
260- Cable ::Logger .messages.should contain(" ChatChannel stopped streaming from {\" channel\" :\" ChatChannel\" ,\" room\" :\" 1\" }" )
261220 end
262221 end
263222
@@ -291,11 +250,6 @@ describe Cable::Connection do
291250
292251 connection.close
293252 socket.close
294- Cable ::Logger .messages.should contain(" ChatChannel is streaming from chat_1" )
295- Cable ::Logger .messages.should contain(" ChatChannel is transmitting the subscription confirmation" )
296- Cable ::Logger .messages.should contain(" [ActionCable] Broadcasting to chat_1: {\" foo\" => \" bar\" }" )
297- Cable ::Logger .messages.should contain(" ChatChannel transmitting {\" foo\" => \" bar\" } (via streamed from chat_1)" )
298- Cable ::Logger .messages.should contain(" ChatChannel stopped streaming from {\" channel\" :\" ChatChannel\" ,\" room\" :\" 1\" }" )
299253 end
300254 end
301255 end
@@ -314,11 +268,6 @@ describe Cable::Connection do
314268
315269 connection.close
316270 socket.close
317- Cable ::Logger .messages.should contain(" ChatChannel is streaming from chat_1" )
318- Cable ::Logger .messages.should contain(" ChatChannel is transmitting the subscription confirmation" )
319- Cable ::Logger .messages.should contain(" [ActionCable] Broadcasting to chat_1: {\" foo\" => \" bar\" }" )
320- Cable ::Logger .messages.should contain(" ChatChannel transmitting {\" foo\" => \" bar\" } (via streamed from chat_1)" )
321- Cable ::Logger .messages.should contain(" ChatChannel stopped streaming from {\" channel\" :\" ChatChannel\" ,\" room\" :\" 1\" }" )
322271 end
323272 end
324273 end
@@ -398,14 +347,7 @@ describe Cable::Connection do
398347
399348 connection.close
400349 socket.close
401- Cable ::Logger .messages.should contain(" ChatChannel is streaming from chat_1" )
402- Cable ::Logger .messages.should contain(" ChatChannel is transmitting the subscription confirmation" )
403- Cable ::Logger .messages.should contain(" RejectionChannel is transmitting the subscription rejection" )
404- Cable ::Logger .messages.should contain(" [ActionCable] Broadcasting to chat_1: {\" foo\" => \" bar\" }" )
405350 # and here we can confirm the message was broadcasted
406- Cable ::Logger .messages.should contain(" ChatChannel transmitting {\" foo\" => \" bar\" } (via streamed from chat_1)" )
407- Cable ::Logger .messages.should contain(" [ActionCable] Broadcasting to rejection: {\" foo\" => \" bar\" }" )
408- Cable ::Logger .messages.should contain(" ChatChannel stopped streaming from {\" channel\" :\" ChatChannel\" ,\" room\" :\" 1\" }" )
409351 end
410352 end
411353 end
0 commit comments