Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #15311 from zuhao/refactor_actionpack_bare_metal_test

The correct status to test should be :switching_protocols.
  • Loading branch information...
commit 2bb6b51c01719c3d558bf8cc962c812a5497f2b2 2 parents f632f79 + 839d461
@senny senny authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/test/controller/new_base/bare_metal_test.rb
View
4 actionpack/test/controller/new_base/bare_metal_test.rb
@@ -81,8 +81,8 @@ class HeadTest < ActiveSupport::TestCase
assert_nil headers['Content-Length']
end
- test "head :continue (101) does not return a content-type header" do
- headers = HeadController.action(:continue).call(Rack::MockRequest.env_for("/")).second
+ test "head :switching_protocols (101) does not return a content-type header" do
+ headers = HeadController.action(:switching_protocols).call(Rack::MockRequest.env_for("/")).second
assert_nil headers['Content-Type']
assert_nil headers['Content-Length']
end
Please sign in to comment.
Something went wrong with that request. Please try again.