From c452d734f202fef3560173cd10701be8ff1a057b Mon Sep 17 00:00:00 2001 From: Denis Odorcic Date: Sat, 23 Oct 2010 00:55:17 -0400 Subject: 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 --- activesupport/test/caching_test.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'activesupport/test') 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 -- cgit v1.2.3