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:
parent
78eecda7e9
commit
8f8c3cc1b1
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user