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:
parent
36390b6bdc
commit
d66d3a4bd1
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue