From b333f7abe610516f7f367bd8e35983f8d6b8656b Mon Sep 17 00:00:00 2001 From: Dominyk Tiller Date: Wed, 29 Aug 2018 11:31:41 +0100 Subject: [PATCH] cleanup_spec: test go_cache cleanup --- Library/Homebrew/test/cleanup_spec.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Library/Homebrew/test/cleanup_spec.rb b/Library/Homebrew/test/cleanup_spec.rb index 4c6099efbd..18c0c9e51a 100644 --- a/Library/Homebrew/test/cleanup_spec.rb +++ b/Library/Homebrew/test/cleanup_spec.rb @@ -225,6 +225,15 @@ describe Homebrew::Cleanup do expect(incomplete).not_to exist end + it "cleans up 'go_cache'" do + go_cache = (HOMEBREW_CACHE/"go_cache") + go_cache.mkpath + + subject.cleanup_cache + + expect(go_cache).not_to exist + end + it "cleans up 'glide_home'" do glide_home = (HOMEBREW_CACHE/"glide_home") glide_home.mkpath