diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2019-02-14 14:31:16 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-14 14:31:16 +0900 |
commit | 0117589a6d9dabb0032cb8c6415c8feb0083e046 (patch) | |
tree | 72bc46ee9dd574a85a0a902ac221fa837753741e /activesupport/test/cache | |
parent | 3f186e30452b700483c42c8d07f095c7b5c031b8 (diff) | |
parent | df29b6643b116502eebdf434f9d7d23187b1b156 (diff) | |
download | rails-0117589a6d9dabb0032cb8c6415c8feb0083e046.tar.gz rails-0117589a6d9dabb0032cb8c6415c8feb0083e046.tar.bz2 rails-0117589a6d9dabb0032cb8c6415c8feb0083e046.zip |
Merge pull request #35266 from ricardotk002/use-dir-children
Use Dir#children and Dir#each_child in ActiveSupport::Cache::FileStore
Diffstat (limited to 'activesupport/test/cache')
-rw-r--r-- | activesupport/test/cache/stores/file_store_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/test/cache/stores/file_store_test.rb b/activesupport/test/cache/stores/file_store_test.rb index f6855bb308..0364d9ab64 100644 --- a/activesupport/test/cache/stores/file_store_test.rb +++ b/activesupport/test/cache/stores/file_store_test.rb @@ -101,7 +101,7 @@ class FileStoreTest < ActiveSupport::TestCase end assert File.exist?(cache_dir), "Parent of top level cache dir was deleted!" assert File.exist?(sub_cache_dir), "Top level cache dir was deleted!" - assert_empty Dir.entries(sub_cache_dir).reject { |f| ActiveSupport::Cache::FileStore::EXCLUDED_DIRS.include?(f) } + assert_empty Dir.children(sub_cache_dir) end def test_log_exception_when_cache_read_fails |