File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
actioncable/lib/action_cable Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -32,21 +32,17 @@ def after_teardown # :nodoc:
32
32
# end
33
33
#
34
34
# If a block is passed, that block should cause the specified number of messages
35
- # to be broadcasted. It returns the messages that were broadcasted.
35
+ # to be broadcasted.
36
36
#
37
37
# def test_broadcasts_again
38
- # message = assert_broadcasts('messages', 1) do
38
+ # assert_broadcasts('messages', 1) do
39
39
# ActionCable.server.broadcast 'messages', { text: 'hello' }
40
40
# end
41
- # assert_equal({ text: 'hello' }, message)
42
41
#
43
- # messages = assert_broadcasts('messages', 2) do
42
+ # assert_broadcasts('messages', 2) do
44
43
# ActionCable.server.broadcast 'messages', { text: 'hi' }
45
44
# ActionCable.server.broadcast 'messages', { text: 'how are you?' }
46
45
# end
47
- # assert_equal 2, messages.length
48
- # assert_equal({ text: 'hi' }, messages.first)
49
- # assert_equal({ text: 'how are you?' }, messages.last)
50
46
# end
51
47
#
52
48
def assert_broadcasts ( stream , number , &block )
You can’t perform that action at this time.
0 commit comments