diff options
Diffstat (limited to 'test/connection/base_test.rb')
-rw-r--r-- | test/connection/base_test.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/connection/base_test.rb b/test/connection/base_test.rb index 81009f0849..7118c34d9e 100644 --- a/test/connection/base_test.rb +++ b/test/connection/base_test.rb @@ -16,8 +16,11 @@ 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', + 'HTTP_ORIGIN' => 'http://rubyonrails.com' - env = Rack::MockRequest.env_for "/test", 'HTTP_CONNECTION' => 'upgrade', 'HTTP_UPGRADE' => 'websocket' @connection = Connection.new(@server, env) @response = @connection.process end |