diff options
author | utilum <oz@utilum.com> | 2018-04-22 22:46:29 +0200 |
---|---|---|
committer | utilum <oz@utilum.com> | 2018-04-26 08:02:08 +0200 |
commit | d1f58e9922de753b5a6b1dc7a8ff2a6cf9463eeb (patch) | |
tree | 689d1402094aa886a9158a2deb702fc31f17d11d /actioncable/test | |
parent | 94ceda00b99794d4f8c28e84d237cc1541af12d7 (diff) | |
download | rails-d1f58e9922de753b5a6b1dc7a8ff2a6cf9463eeb.tar.gz rails-d1f58e9922de753b5a6b1dc7a8ff2a6cf9463eeb.tar.bz2 rails-d1f58e9922de753b5a6b1dc7a8ff2a6cf9463eeb.zip |
assert_called_with
Diffstat (limited to 'actioncable/test')
-rw-r--r-- | actioncable/test/connection/base_test.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/actioncable/test/connection/base_test.rb b/actioncable/test/connection/base_test.rb index cbeac1bb3a..ed62e90b70 100644 --- a/actioncable/test/connection/base_test.rb +++ b/actioncable/test/connection/base_test.rb @@ -62,10 +62,11 @@ class ActionCable::Connection::BaseTest < ActionCable::TestCase run_in_eventmachine do connection = open_connection - connection.websocket.expects(:transmit).with({ type: "welcome" }.to_json) - assert_called(connection.message_buffer, :process!) do - connection.process - wait_for_async + assert_called_with(connection.websocket, :transmit, [{ type: "welcome" }.to_json]) do + assert_called(connection.message_buffer, :process!) do + connection.process + wait_for_async + end end assert_equal [ connection ], @server.connections |