diff options
Diffstat (limited to 'Library/Homebrew/test')
| -rw-r--r-- | Library/Homebrew/test/test_cleanup.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_cleanup.rb b/Library/Homebrew/test/test_cleanup.rb index bccfa1e54..1351c85a6 100644 --- a/Library/Homebrew/test/test_cleanup.rb +++ b/Library/Homebrew/test/test_cleanup.rb @@ -73,4 +73,11 @@ class CleanupTests < Homebrew::TestCase shutup { Homebrew::Cleanup.cleanup_cache } refute_predicate java_cache, :exist? end + + def test_cleanup_cache_npm_cache + npm_cache = (HOMEBREW_CACHE/"npm_cache") + npm_cache.mkpath + shutup { Homebrew::Cleanup.cleanup_cache } + refute_predicate npm_cache, :exist? + end end |
