Tear down the cache after installation tests

This commit is contained in:
Jack Nagel 2013-09-14 11:51:36 -05:00
parent a31fcb554c
commit cecf9a564f

View File

@ -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