diff options
author | Erich Soares Machado <erichmachado@gmail.com> | 2017-10-03 00:49:13 +0200 |
---|---|---|
committer | Erich Soares Machado <erichmachado@gmail.com> | 2017-10-03 09:51:35 +0200 |
commit | e2dbfe5adac3438e3f8bbd2e2dce2ad39c91221b (patch) | |
tree | f17f1f1e20bcdcf14b756cd657ceed84023e314e /activesupport/test | |
parent | 012196bbc78cf1c9243d0c2ceaa1e509a9a34a11 (diff) | |
download | rails-e2dbfe5adac3438e3f8bbd2e2dce2ad39c91221b.tar.gz rails-e2dbfe5adac3438e3f8bbd2e2dce2ad39c91221b.tar.bz2 rails-e2dbfe5adac3438e3f8bbd2e2dce2ad39c91221b.zip |
Fixes ActiveSupport::Cache::FileStore#cleanup bug which prevented it from cleaning up the expired cache keys
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/cache/stores/file_store_test.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activesupport/test/cache/stores/file_store_test.rb b/activesupport/test/cache/stores/file_store_test.rb index 391ab60b3a..66231b0a82 100644 --- a/activesupport/test/cache/stores/file_store_test.rb +++ b/activesupport/test/cache/stores/file_store_test.rb @@ -118,6 +118,7 @@ class FileStoreTest < ActiveSupport::TestCase assert_not @cache.exist?("foo") assert @cache.exist?("baz") assert @cache.exist?("quux") + assert_equal 2, Dir.glob(File.join(cache_dir, "**")).size end end |