1
0
Fork 0
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:
Yves Senn 2014-05-25 13:56:59 +02:00
commit 2bb6b51c01

View file

@ -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