cleanup_spec: test go_cache cleanup

This commit is contained in:
Dominyk Tiller 2018-08-29 11:31:41 +01:00
parent 318eb5054f
commit b333f7abe6
No known key found for this signature in database
GPG Key ID: FE19AEFCF658C6F6

View File

@ -225,6 +225,15 @@ describe Homebrew::Cleanup do
expect(incomplete).not_to exist expect(incomplete).not_to exist
end 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 it "cleans up 'glide_home'" do
glide_home = (HOMEBREW_CACHE/"glide_home") glide_home = (HOMEBREW_CACHE/"glide_home")
glide_home.mkpath glide_home.mkpath