Browse files

The correct status to test should be :switching_protocols.

  • Loading branch information...
1 parent f632f79 commit 839d461b61e92714f7b733416ea81ea34cadac55 @zuhao zuhao committed May 25, 2014
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

0 comments on commit 839d461

Please sign in to comment.