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.
This commit is contained in:
bogdanvlviv 2018-05-28 09:08:57 +00:00
parent 36390b6bdc
commit d66d3a4bd1
No known key found for this signature in database
GPG Key ID: E4ACD76A6DB6DFDD
1 changed files with 1 additions and 1 deletions

View File

@ -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