aboutsummaryrefslogtreecommitdiffstats
path: root/actioncable/test/connection/authorization_test.rb
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2016-03-02 11:20:19 +1030
committerMatthew Draper <matthew@trebex.net>2016-03-02 12:17:15 +1030
commita373be9da45d4bee684ea03420212780ec1ef4b1 (patch)
tree3798c6117d8944189c84bd5363d49dbf935ea407 /actioncable/test/connection/authorization_test.rb
parent541e4abb4b3710a384aefac83cafd0ab878c60bf (diff)
downloadrails-a373be9da45d4bee684ea03420212780ec1ef4b1.tar.gz
rails-a373be9da45d4bee684ea03420212780ec1ef4b1.tar.bz2
rails-a373be9da45d4bee684ea03420212780ec1ef4b1.zip
Support faye-websocket + EventMachine as an option
Diffstat (limited to 'actioncable/test/connection/authorization_test.rb')
-rw-r--r--actioncable/test/connection/authorization_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actioncable/test/connection/authorization_test.rb b/actioncable/test/connection/authorization_test.rb
index 87d0e79ef3..a0506cb9c0 100644
--- a/actioncable/test/connection/authorization_test.rb
+++ b/actioncable/test/connection/authorization_test.rb
@@ -20,7 +20,7 @@ class ActionCable::Connection::AuthorizationTest < ActionCable::TestCase
server.config.allowed_request_origins = %w( http://rubyonrails.com )
env = Rack::MockRequest.env_for "/test", 'HTTP_CONNECTION' => 'upgrade', 'HTTP_UPGRADE' => 'websocket',
- 'HTTP_ORIGIN' => 'http://rubyonrails.com'
+ 'HTTP_HOST' => 'localhost', 'HTTP_ORIGIN' => 'http://rubyonrails.com'
connection = Connection.new(server, env)
connection.websocket.expects(:close)