Permalink
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...
2 parents f632f79 + 839d461 commit 2bb6b51c01719c3d558bf8cc962c812a5497f2b2 @senny senny committed May 25, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 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

0 comments on commit 2bb6b51

Please sign in to comment.