aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorNeeraj Singh <neerajdotname@gmail.com>2011-06-10 02:24:37 -0400
committerNeeraj Singh <neerajdotname@gmail.com>2011-06-10 02:24:37 -0400
commit49d032929b4924a3fc3e43aa21ca90d7f1174724 (patch)
tree80ff16c7f615125f52b16e100a8d73609a406eeb /actionpack/test
parent0b02284545dcbed7da40489e0db9bd49eca924b1 (diff)
downloadrails-49d032929b4924a3fc3e43aa21ca90d7f1174724.tar.gz
rails-49d032929b4924a3fc3e43aa21ca90d7f1174724.tar.bz2
rails-49d032929b4924a3fc3e43aa21ca90d7f1174724.zip
The test name is misleading. It says
test_should_cache_with_trailing_slash_on_url A trailing slash is removed when a page is cached. What the test meant to say was : a url with trailing slash should be cached and the cached page should not have any trailing slash. This patch clarifies the name a bit.
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/controller/caching_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/controller/caching_test.rb b/actionpack/test/controller/caching_test.rb
index 82c2c23607..dcb88d604d 100644
--- a/actionpack/test/controller/caching_test.rb
+++ b/actionpack/test/controller/caching_test.rb
@@ -127,7 +127,7 @@ class PageCachingTest < ActionController::TestCase
assert_equal 'I am xml', @response.body
end
- def test_should_cache_with_trailing_slash_on_url
+ def test_cached_page_should_not_have_trailing_slash_even_if_url_has_trailing_slash
@controller.class.cache_page 'cached content', '/page_caching_test/trailing_slash/'
assert File.exist?("#{FILE_STORE_PATH}/page_caching_test/trailing_slash.html")
end