aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/caching_test.rb
diff options
context:
space:
mode:
authorPratik Naik <pratiknaik@gmail.com>2008-12-25 17:54:44 +0000
committerPratik Naik <pratiknaik@gmail.com>2008-12-25 17:54:44 +0000
commit6e2a771661a47fb682108648244837f8616e350d (patch)
treed0ab5f66aab84b759b31d1a54ba15eaa301756d4 /actionpack/test/controller/caching_test.rb
parente898f82a743063652aed802d99ea8b5deac2ec3c (diff)
downloadrails-6e2a771661a47fb682108648244837f8616e350d.tar.gz
rails-6e2a771661a47fb682108648244837f8616e350d.tar.bz2
rails-6e2a771661a47fb682108648244837f8616e350d.zip
Undry ActionController::TestCase#<HTTP_METHODS> for better documentation
Diffstat (limited to 'actionpack/test/controller/caching_test.rb')
-rw-r--r--actionpack/test/controller/caching_test.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/actionpack/test/controller/caching_test.rb b/actionpack/test/controller/caching_test.rb
index e24bb00bc7..7f8e47ba58 100644
--- a/actionpack/test/controller/caching_test.rb
+++ b/actionpack/test/controller/caching_test.rb
@@ -121,8 +121,7 @@ class PageCachingTest < ActionController::TestCase
[:get, :post, :put, :delete].each do |method|
unless method == :get and status == :ok
define_method "test_shouldnt_cache_#{method}_with_#{status}_status" do
- @request.env['REQUEST_METHOD'] = method.to_s.upcase
- process status
+ send(method, status)
assert_response status
assert_page_not_cached status, "#{method} with #{status} status shouldn't have been cached"
end