aboutsummaryrefslogtreecommitdiffstats
path: root/actioncable/test
diff options
context:
space:
mode:
authorbogdanvlviv <bogdanvlviv@gmail.com>2018-05-28 09:08:57 +0000
committerbogdanvlviv <bogdanvlviv@gmail.com>2018-05-28 09:20:24 +0000
commitd66d3a4bd1c2dbb76bc60024c433254c747da13c (patch)
treefc6c3a6ce8ba93b451a57c5a85c52483d5c5b161 /actioncable/test
parent36390b6bdc75fca70e7a9d74c6270e3f40e77799 (diff)
downloadrails-d66d3a4bd1c2dbb76bc60024c433254c747da13c.tar.gz
rails-d66d3a4bd1c2dbb76bc60024c433254c747da13c.tar.bz2
rails-d66d3a4bd1c2dbb76bc60024c433254c747da13c.zip
Fix actionable test's assertion
Pull Request #32727 changed "mocha expects" in favor of `MethodCallAssertions`. This commit fixes assertion that became less strict after the PR.
Diffstat (limited to 'actioncable/test')
-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