From c25e11563c839f2d4c49cb28d3bcbff177cc3fb3 Mon Sep 17 00:00:00 2001 From: Baptiste Fontaine Date: Wed, 27 Jan 2016 22:38:03 +0100 Subject: [PATCH] tests: fix a file leak --- Library/Homebrew/test/test_integration_cmds.rb | 2 ++ 1 file changed, 2 insertions(+) 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