aboutsummaryrefslogtreecommitdiffstats
path: root/test/connection
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2015-07-30 07:33:13 +0200
committerKasper Timm Hansen <kaspth@gmail.com>2015-07-30 07:33:13 +0200
commit0c30d87868a8b59c47acbc695ef5e37d6361b3cc (patch)
treefa0c24e3149a06116079c392f3cea3c3928b05de /test/connection
parent65fde3bf75cf82bf18d8cfa36bc07f52c9a866ff (diff)
parent60e2fa5e955ce819c90f2081320554b5ed0ee83c (diff)
downloadrails-0c30d87868a8b59c47acbc695ef5e37d6361b3cc.tar.gz
rails-0c30d87868a8b59c47acbc695ef5e37d6361b3cc.tar.bz2
rails-0c30d87868a8b59c47acbc695ef5e37d6361b3cc.zip
Merge pull request #42 from lsylvester/channel-lookup-refactor
Optimize channel class lookup
Diffstat (limited to 'test/connection')
-rw-r--r--test/connection/subscriptions_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/connection/subscriptions_test.rb b/test/connection/subscriptions_test.rb
index 4e134b6420..24fe8f9300 100644
--- a/test/connection/subscriptions_test.rb
+++ b/test/connection/subscriptions_test.rb
@@ -20,7 +20,7 @@ class ActionCable::Connection::SubscriptionsTest < ActiveSupport::TestCase
setup do
@server = TestServer.new
- @server.stubs(:channel_classes).returns([ ChatChannel ])
+ @server.stubs(:channel_classes).returns(ChatChannel.name => ChatChannel)
env = Rack::MockRequest.env_for "/test", 'HTTP_CONNECTION' => 'upgrade', 'HTTP_UPGRADE' => 'websocket'
@connection = Connection.new(@server, env)