diff options
author | Xavier Noria <fxn@hashref.com> | 2012-02-22 09:00:53 -0800 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2012-02-22 09:00:53 -0800 |
commit | 7f2548e34d79c47ca138ca0378f4a06390c407f1 (patch) | |
tree | 4807b806fe8f3cfe30314fc522599b776e4a6d36 /actionpack/test/controller/caching_test.rb | |
parent | f28d9f15482addeb95ab05545b7a8467a4e0182d (diff) | |
parent | 002713c64568114f3754799acc0723ea0d442f7a (diff) | |
download | rails-7f2548e34d79c47ca138ca0378f4a06390c407f1.tar.gz rails-7f2548e34d79c47ca138ca0378f4a06390c407f1.tar.bz2 rails-7f2548e34d79c47ca138ca0378f4a06390c407f1.zip |
Merge pull request #5130 from dlee/revised_patch_verb
Add config.default_method_for_update to support PATCH
Diffstat (limited to 'actionpack/test/controller/caching_test.rb')
-rw-r--r-- | actionpack/test/controller/caching_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/controller/caching_test.rb b/actionpack/test/controller/caching_test.rb index 10f73c3da3..a42c68a628 100644 --- a/actionpack/test/controller/caching_test.rb +++ b/actionpack/test/controller/caching_test.rb @@ -180,7 +180,7 @@ class PageCachingTest < ActionController::TestCase end [:ok, :no_content, :found, :not_found].each do |status| - [:get, :post, :put, :delete].each do |method| + [:get, :post, :patch, :put, :delete].each do |method| unless method == :get && status == :ok define_method "test_shouldnt_cache_#{method}_with_#{status}_status" do send(method, status) |