diff options
author | Zuhao Wan <wanzuhao@gmail.com> | 2014-05-25 16:17:22 +0800 |
---|---|---|
committer | Zuhao Wan <wanzuhao@gmail.com> | 2014-05-25 16:17:22 +0800 |
commit | 839d461b61e92714f7b733416ea81ea34cadac55 (patch) | |
tree | 75a59933f50d22d3f2b4de4da1696c1b39f3e727 /actionpack | |
parent | f632f79b8dcd144408c66a544984b2ba9cf52f87 (diff) | |
download | rails-839d461b61e92714f7b733416ea81ea34cadac55.tar.gz rails-839d461b61e92714f7b733416ea81ea34cadac55.tar.bz2 rails-839d461b61e92714f7b733416ea81ea34cadac55.zip |
The correct status to test should be :switching_protocols.
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/test/controller/new_base/bare_metal_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/controller/new_base/bare_metal_test.rb b/actionpack/test/controller/new_base/bare_metal_test.rb index 7396c850ad..2ddc07ef72 100644 --- a/actionpack/test/controller/new_base/bare_metal_test.rb +++ b/actionpack/test/controller/new_base/bare_metal_test.rb @@ -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 |