diff options
author | Denis Odorcic <denis.odorcic@gmail.com> | 2010-10-23 00:55:17 -0400 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2010-11-07 20:01:51 -0200 |
commit | c452d734f202fef3560173cd10701be8ff1a057b (patch) | |
tree | 8ee326d568d56e09b2aba2b2e09d50bfce7c1f7c /activesupport/test/caching_test.rb | |
parent | 3d6eea0221f0092cb3c3270c2a9bdf31745d1b2d (diff) | |
download | rails-c452d734f202fef3560173cd10701be8ff1a057b.tar.gz rails-c452d734f202fef3560173cd10701be8ff1a057b.tar.bz2 rails-c452d734f202fef3560173cd10701be8ff1a057b.zip |
Fix FileStore cache incorrectly regenerating its key from a pathname when a regexp is used in expire_fragment
[#5850 state:committed]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Diffstat (limited to 'activesupport/test/caching_test.rb')
-rw-r--r-- | activesupport/test/caching_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activesupport/test/caching_test.rb b/activesupport/test/caching_test.rb index 28ef695a4b..6c178a479f 100644 --- a/activesupport/test/caching_test.rb +++ b/activesupport/test/caching_test.rb @@ -356,9 +356,13 @@ module CacheDeleteMatchedBehavior def test_delete_matched @cache.write("foo", "bar") @cache.write("fu", "baz") + @cache.write("foo/bar", "baz") + @cache.write("fu/baz", "bar") @cache.delete_matched(/oo/) assert_equal false, @cache.exist?("foo") assert_equal true, @cache.exist?("fu") + assert_equal false, @cache.exist?("foo/bar") + assert_equal true, @cache.exist?("fu/baz") end end |