diff --git a/Library/Homebrew/test/test_integration_cmds.rb b/Library/Homebrew/test/test_integration_cmds.rb index 78b268a27d..805980fdf7 100644 --- a/Library/Homebrew/test/test_integration_cmds.rb +++ b/Library/Homebrew/test/test_integration_cmds.rb @@ -158,6 +158,8 @@ class IntegrationCommandTests < Homebrew::TestCase def test_cleanup (HOMEBREW_CACHE/"test").write "test" assert_match "#{HOMEBREW_CACHE}/test", cmd("cleanup", "--prune=all") + ensure + (HOMEBREW_CACHE/"test").rmtree end def test_readall