mirror of https://github.com/rails/rails
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:
parent
36390b6bdc
commit
d66d3a4bd1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue