aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_formula_install.rb
diff options
context:
space:
mode:
authorJack Nagel2013-09-14 11:51:36 -0500
committerJack Nagel2013-09-14 11:53:32 -0500
commitcecf9a564fca731fc3293d99bead86c8c280541d (patch)
treece00e977f0634bab438ed47f32ed38f393c130ff /Library/Homebrew/test/test_formula_install.rb
parenta31fcb554c1c1ca247bf10073a8c2425afe19a82 (diff)
downloadbrew-cecf9a564fca731fc3293d99bead86c8c280541d.tar.bz2
Tear down the cache after installation tests
Diffstat (limited to 'Library/Homebrew/test/test_formula_install.rb')
-rw-r--r--Library/Homebrew/test/test_formula_install.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_formula_install.rb b/Library/Homebrew/test/test_formula_install.rb
index ea1584ec6..967f2e6cc 100644
--- a/Library/Homebrew/test/test_formula_install.rb
+++ b/Library/Homebrew/test/test_formula_install.rb
@@ -17,6 +17,10 @@ end
class ConfigureTests < Test::Unit::TestCase
+ def teardown
+ HOMEBREW_CACHE.rmtree
+ end
+
def test_detect_failed_configure
f = ConfigureFails.new
shutup { f.brew { f.install } }
@@ -27,6 +31,10 @@ end
class InstallTests < Test::Unit::TestCase
+ def teardown
+ HOMEBREW_CACHE.rmtree
+ end
+
def temporary_install f
# Brew and install the given formula
shutup do