未验证 提交 6d4bcd43 编写于 作者: R Ryuta Kamizono 提交者: GitHub

Merge pull request #33003 from bogdanvlviv/fix-actioncable-test-changed-in-32727

Fix actionable test's assertion
......@@ -180,7 +180,7 @@ class StreamFromTest < ActionCable::TestCase
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册