Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Test cache.key_file_path with separators ht. Jim Wilson [#5611]

  • Loading branch information...
commit 4e0477c9b75683372f662a614ae91b158120ebe8 1 parent c452d73
@spastorino spastorino authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 activesupport/test/caching_test.rb
View
5 activesupport/test/caching_test.rb
@@ -513,6 +513,11 @@ def test_deprecated_expires_in_on_read
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
Please sign in to comment.
Something went wrong with that request. Please try again.