tests: fix a file leak

This commit is contained in:
Baptiste Fontaine 2016-01-27 22:38:03 +01:00
parent 4cc8d3ed8b
commit c25e11563c

View File

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