aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/caching_test.rb
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2010-11-07 20:01:18 -0200
committerSantiago Pastorino <santiago@wyeworks.com>2010-11-07 20:02:14 -0200
commit4e0477c9b75683372f662a614ae91b158120ebe8 (patch)
tree9858b03f6a19385f1d7c0c1ee4502f0fb72259f9 /activesupport/test/caching_test.rb
parentc452d734f202fef3560173cd10701be8ff1a057b (diff)
downloadrails-4e0477c9b75683372f662a614ae91b158120ebe8.tar.gz
rails-4e0477c9b75683372f662a614ae91b158120ebe8.tar.bz2
rails-4e0477c9b75683372f662a614ae91b158120ebe8.zip
Test cache.key_file_path with separators ht. Jim Wilson [#5611]
Diffstat (limited to 'activesupport/test/caching_test.rb')
-rw-r--r--activesupport/test/caching_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/activesupport/test/caching_test.rb b/activesupport/test/caching_test.rb
index 6c178a479f..579d5dad24 100644
--- a/activesupport/test/caching_test.rb
+++ b/activesupport/test/caching_test.rb
@@ -513,6 +513,11 @@ class FileStoreTest < ActiveSupport::TestCase
assert_nil old_cache.read('foo')
end
end
+
+ def test_key_transformation
+ key = @cache.send(:key_file_path, "views/index?id=1")
+ assert_equal "views/index?id=1", @cache.send(:file_path_key, key)
+ end
end
class MemoryStoreTest < ActiveSupport::TestCase