aboutsummaryrefslogtreecommitdiffstats
path: root/actioncable/test/javascript/src/unit/consumer_test.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'actioncable/test/javascript/src/unit/consumer_test.coffee')
-rw-r--r--actioncable/test/javascript/src/unit/consumer_test.coffee7
1 files changed, 5 insertions, 2 deletions
diff --git a/actioncable/test/javascript/src/unit/consumer_test.coffee b/actioncable/test/javascript/src/unit/consumer_test.coffee
index cf8a592255..41445274eb 100644
--- a/actioncable/test/javascript/src/unit/consumer_test.coffee
+++ b/actioncable/test/javascript/src/unit/consumer_test.coffee
@@ -2,8 +2,11 @@
{consumerTest} = ActionCable.TestHelpers
module "ActionCable.Consumer", ->
- consumerTest "#connect", connect: false, ({consumer, server, done}) ->
- server.on("connection", done)
+ consumerTest "#connect", connect: false, ({consumer, server, assert, done}) ->
+ server.on "connection", ->
+ assert.equal consumer.connect(), false
+ done()
+
consumer.connect()
consumerTest "#disconnect", ({consumer, client, done}) ->