aboutsummaryrefslogtreecommitdiffstats
path: root/test/connection
diff options
context:
space:
mode:
Diffstat (limited to 'test/connection')
-rw-r--r--test/connection/base_test.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/connection/base_test.rb b/test/connection/base_test.rb
index a4bd7f4a03..6c8bacde9a 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.disable_request_forgery_protection = true
- env = Rack::MockRequest.env_for "/test", 'HTTP_CONNECTION' => 'upgrade', 'HTTP_UPGRADE' => 'websocket'
+ env = Rack::MockRequest.env_for "/test", 'HTTP_CONNECTION' => 'upgrade', 'HTTP_UPGRADE' => 'websocket',
+ 'SERVER_NAME' => 'rubyonrails.com', 'HTTP_ORIGIN' => 'http://rubyonrails.com'
+
@connection = Connection.new(@server, env)
@response = @connection.process
end