integration tests: fix failing test

If the test fails above `formula_file`’s definition this line fails
because `formula_file` is `nil`.

Closes Homebrew/homebrew#47663.

Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
This commit is contained in:
Baptiste Fontaine 2016-01-04 13:41:38 +01:00
parent 78eecda7e9
commit 8f8c3cc1b1

View File

@ -119,7 +119,7 @@ class IntegrationCommandTests < Homebrew::TestCase
ensure
cmd("uninstall", "--force", "testball")
cmd("cleanup", "--force", "--prune=all")
formula_file.unlink
formula_file.unlink unless formula_file.nil?
end
def test_uninstall