tests: fix a file leak
This commit is contained in:
parent
4cc8d3ed8b
commit
c25e11563c
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user