diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2012-07-23 13:50:48 -0300 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2012-07-23 14:34:13 -0300 |
commit | 449039a86d802871b707dfb51ac1ed96d53526f9 (patch) | |
tree | c700ec596a2cb57400383adb1005723a2182a374 /actionpack/test/dispatch | |
parent | 998189abde4caee6f325c273afe2d1dc562ad805 (diff) | |
download | rails-449039a86d802871b707dfb51ac1ed96d53526f9.tar.gz rails-449039a86d802871b707dfb51ac1ed96d53526f9.tar.bz2 rails-449039a86d802871b707dfb51ac1ed96d53526f9.zip |
Remove ActionDispatch::Head middleware in favor of Rack::Head
Closes #7110 there's more work to do on rack-cache issue 69
Diffstat (limited to 'actionpack/test/dispatch')
-rw-r--r-- | actionpack/test/dispatch/request_test.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/actionpack/test/dispatch/request_test.rb b/actionpack/test/dispatch/request_test.rb index 54fc1b208d..a434e49dbd 100644 --- a/actionpack/test/dispatch/request_test.rb +++ b/actionpack/test/dispatch/request_test.rb @@ -461,14 +461,6 @@ class RequestTest < ActiveSupport::TestCase end end - test "head masquerading as get" do - request = stub_request 'REQUEST_METHOD' => 'GET', "rack.methodoverride.original_method" => "HEAD" - assert_equal "HEAD", request.method - assert_equal "GET", request.request_method - assert request.get? - assert request.head? - end - test "post masquerading as patch" do request = stub_request 'REQUEST_METHOD' => 'PATCH', "rack.methodoverride.original_method" => "POST" assert_equal "POST", request.method |