1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

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