diff options
author | Alexey Pokhozhaev <poporul@gmail.com> | 2015-11-13 01:46:08 +0300 |
---|---|---|
committer | Alexey Pokhozhaev <poporul@gmail.com> | 2015-11-13 01:46:08 +0300 |
commit | 4f3e86838490d65d3f67d89cc77797674281b8a1 (patch) | |
tree | 20a180650e8c2633c90dd9024122777187b7563d /activesupport/test | |
parent | 53d04697d5c9450ecb5b7f37bdf0d5f12dd5ded5 (diff) | |
download | rails-4f3e86838490d65d3f67d89cc77797674281b8a1.tar.gz rails-4f3e86838490d65d3f67d89cc77797674281b8a1.tar.bz2 rails-4f3e86838490d65d3f67d89cc77797674281b8a1.zip |
Allow to store .keep file in cache directory
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/caching_test.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/activesupport/test/caching_test.rb b/activesupport/test/caching_test.rb index 3629f5e64b..9a7458f0bb 100644 --- a/activesupport/test/caching_test.rb +++ b/activesupport/test/caching_test.rb @@ -761,10 +761,12 @@ class FileStoreTest < ActiveSupport::TestCase include AutoloadingCacheBehavior def test_clear - filepath = File.join(cache_dir, ".gitkeep") - FileUtils.touch(filepath) + gitkeep = File.join(cache_dir, ".gitkeep") + keep = File.join(cache_dir, ".keep") + FileUtils.touch([gitkeep, keep]) @cache.clear - assert File.exist?(filepath) + assert File.exist?(gitkeep) + assert File.exist?(keep) end def test_clear_without_cache_dir |