diff options
author | David Lee <davidomundo@gmail.com> | 2011-05-07 01:19:01 -0700 |
---|---|---|
committer | David Lee <davidomundo@gmail.com> | 2011-05-07 03:04:26 -0700 |
commit | 17a91a6ef93008170e50c073d1c3794f038a0a33 (patch) | |
tree | 46d33bc3274dae6a75aa17c7e3ef1b5cc7ee6f79 /actionpack/test/dispatch | |
parent | fa8623b52ef136d9479fe4f9cc61256228d590e0 (diff) | |
download | rails-17a91a6ef93008170e50c073d1c3794f038a0a33.tar.gz rails-17a91a6ef93008170e50c073d1c3794f038a0a33.tar.bz2 rails-17a91a6ef93008170e50c073d1c3794f038a0a33.zip |
Logs should show overridden method; Issue 426
Diffstat (limited to 'actionpack/test/dispatch')
-rw-r--r-- | actionpack/test/dispatch/request_test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/actionpack/test/dispatch/request_test.rb b/actionpack/test/dispatch/request_test.rb index d128006404..25b1b4f745 100644 --- a/actionpack/test/dispatch/request_test.rb +++ b/actionpack/test/dispatch/request_test.rb @@ -358,6 +358,13 @@ class RequestTest < ActiveSupport::TestCase assert request.head? end + test "post masquerading as put" do + request = stub_request 'REQUEST_METHOD' => 'PUT', "rack.methodoverride.original_method" => "POST" + assert_equal "POST", request.method + assert_equal "PUT", request.request_method + assert request.put? + end + test "xml format" do request = stub_request request.expects(:parameters).at_least_once.returns({ :format => 'xml' }) |