aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2018-05-28 22:14:03 +0900
committerGitHub <noreply@github.com>2018-05-28 22:14:03 +0900
commit6d4bcd439de4ca87374dd6ad03a43deeb3a5e1f6 (patch)
tree4479112a34288a83c3513387c7086d10af5a178e
parent8c3bf602cd5329cab3c6572958bc2950b857e149 (diff)
parentd66d3a4bd1c2dbb76bc60024c433254c747da13c (diff)
downloadrails-6d4bcd439de4ca87374dd6ad03a43deeb3a5e1f6.tar.gz
rails-6d4bcd439de4ca87374dd6ad03a43deeb3a5e1f6.tar.bz2
rails-6d4bcd439de4ca87374dd6ad03a43deeb3a5e1f6.zip
Merge pull request #33003 from bogdanvlviv/fix-actioncable-test-changed-in-32727
Fix actionable test's assertion
-rw-r--r--actioncable/test/channel/stream_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actioncable/test/channel/stream_test.rb b/actioncable/test/channel/stream_test.rb
index 5c1f308f53..b4b118846d 100644
--- a/actioncable/test/channel/stream_test.rb
+++ b/actioncable/test/channel/stream_test.rb
@@ -180,7 +180,7 @@ module ActionCable::StreamTests
run_in_eventmachine do
connection = open_connection
expected = { "identifier" => { "channel" => MultiChatChannel.name }.to_json, "type" => "confirm_subscription" }
- assert_called(connection.websocket, :transmit, [expected.to_json]) do
+ assert_called_with(connection.websocket, :transmit, [expected.to_json]) do
receive(connection, command: "subscribe", channel: MultiChatChannel.name, identifiers: {})
wait_for_async
end