提交 4e0477c9 编写于 作者: S Santiago Pastorino

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

上级 c452d734
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册