aboutsummaryrefslogtreecommitdiffstats
path: root/actioncable/test/connection
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2016-02-18 18:17:17 -0600
committerPratik Naik <pratiknaik@gmail.com>2016-02-23 09:37:49 -0600
commit426676e8d0fdde079406e35f6bc13c8c20bd8a92 (patch)
treecbd1d50d4c449515e9cf3b05033987edad603ccf /actioncable/test/connection
parent725c913c902902d84a595760cd9fdb933cfa824d (diff)
downloadrails-426676e8d0fdde079406e35f6bc13c8c20bd8a92.tar.gz
rails-426676e8d0fdde079406e35f6bc13c8c20bd8a92.tar.bz2
rails-426676e8d0fdde079406e35f6bc13c8c20bd8a92.zip
Confirm connection monitor subscription on open
Diffstat (limited to 'actioncable/test/connection')
-rw-r--r--actioncable/test/connection/base_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actioncable/test/connection/base_test.rb b/actioncable/test/connection/base_test.rb
index e2b017a9a1..3bef9e95a1 100644
--- a/actioncable/test/connection/base_test.rb
+++ b/actioncable/test/connection/base_test.rb
@@ -56,7 +56,7 @@ class ActionCable::Connection::BaseTest < ActionCable::TestCase
run_in_eventmachine do
connection = open_connection
- connection.websocket.expects(:transmit).with(regexp_matches(/\_ping/))
+ connection.websocket.expects(:transmit).with({ identifier: "_ping", type: "confirm_subscription" }.to_json)
connection.message_buffer.expects(:process!)
connection.process