aboutsummaryrefslogtreecommitdiffstats
path: root/test/connection/base_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/connection/base_test.rb')
-rw-r--r--test/connection/base_test.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/connection/base_test.rb b/test/connection/base_test.rb
index 6c8bacde9a..bc8b5ba568 100644
--- a/test/connection/base_test.rb
+++ b/test/connection/base_test.rb
@@ -16,9 +16,10 @@ class ActionCable::Connection::BaseTest < ActiveSupport::TestCase
setup do
@server = TestServer.new
+ @server.config.allowed_request_origins = %w( http://rubyonrails.com )
env = Rack::MockRequest.env_for "/test", 'HTTP_CONNECTION' => 'upgrade', 'HTTP_UPGRADE' => 'websocket',
- 'SERVER_NAME' => 'rubyonrails.com', 'HTTP_ORIGIN' => 'http://rubyonrails.com'
+ 'HTTP_ORIGIN' => 'http://rubyonrails.com'
@connection = Connection.new(@server, env)
@response = @connection.process