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
|
def test_cleanup
|
||||||
(HOMEBREW_CACHE/"test").write "test"
|
(HOMEBREW_CACHE/"test").write "test"
|
||||||
assert_match "#{HOMEBREW_CACHE}/test", cmd("cleanup", "--prune=all")
|
assert_match "#{HOMEBREW_CACHE}/test", cmd("cleanup", "--prune=all")
|
||||||
|
ensure
|
||||||
|
(HOMEBREW_CACHE/"test").rmtree
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_readall
|
def test_readall
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user