tests: don't try to rm an unexisting file

This line is necessary if the test fails. If it passes the file won't
exist anymore and shouldn't be removed.
This commit is contained in:
Baptiste Fontaine 2016-01-27 23:02:41 +01:00
parent c25e11563c
commit 47aa71e633

View File

@ -159,7 +159,7 @@ class IntegrationCommandTests < Homebrew::TestCase
(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 ensure
(HOMEBREW_CACHE/"test").rmtree FileUtils.rm_f HOMEBREW_CACHE/"test"
end end
def test_readall def test_readall