aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/new_base/bare_metal_test.rb
diff options
context:
space:
mode:
authorZuhao Wan <wanzuhao@gmail.com>2014-05-25 16:17:22 +0800
committerZuhao Wan <wanzuhao@gmail.com>2014-05-25 16:17:22 +0800
commit839d461b61e92714f7b733416ea81ea34cadac55 (patch)
tree75a59933f50d22d3f2b4de4da1696c1b39f3e727 /actionpack/test/controller/new_base/bare_metal_test.rb
parentf632f79b8dcd144408c66a544984b2ba9cf52f87 (diff)
downloadrails-839d461b61e92714f7b733416ea81ea34cadac55.tar.gz
rails-839d461b61e92714f7b733416ea81ea34cadac55.tar.bz2
rails-839d461b61e92714f7b733416ea81ea34cadac55.zip
The correct status to test should be :switching_protocols.
Diffstat (limited to 'actionpack/test/controller/new_base/bare_metal_test.rb')
-rw-r--r--actionpack/test/controller/new_base/bare_metal_test.rb4
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