mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #15311 from zuhao/refactor_actionpack_bare_metal_test
The correct status to test should be :switching_protocols.
This commit is contained in:
commit
2bb6b51c01
1 changed files with 2 additions and 2 deletions
|
@ -81,8 +81,8 @@ module BareMetalTest
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue