diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2007-12-17 00:06:24 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2007-12-17 00:06:24 +0000 |
commit | 26e10218bc5e5c899b88f8d08b8abfb251b3af10 (patch) | |
tree | ad47d9e35f6d1491536ba5c90dad7440aab5ce27 /actionpack/test/controller | |
parent | c92a7cea058bf24d234bbac3ca814e793f40c099 (diff) | |
download | rails-26e10218bc5e5c899b88f8d08b8abfb251b3af10.tar.gz rails-26e10218bc5e5c899b88f8d08b8abfb251b3af10.tar.bz2 rails-26e10218bc5e5c899b88f8d08b8abfb251b3af10.zip |
Added OPTIONS to list of default accepted HTTP methods (closes #10449) [holoway]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8425 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/request_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/controller/request_test.rb b/actionpack/test/controller/request_test.rb index 39ec2b47c1..698d3cbd2a 100644 --- a/actionpack/test/controller/request_test.rb +++ b/actionpack/test/controller/request_test.rb @@ -316,7 +316,7 @@ class RequestTest < Test::Unit::TestCase def test_allow_method_hacking_on_post set_request_method_to :post - [:get, :head, :put, :post, :delete].each do |method| + [:get, :head, :options, :put, :post, :delete].each do |method| @request.instance_eval { @parameters = { :_method => method } ; @request_method = nil } assert_equal(method == :head ? :get : method, @request.method) end |