From 8f8c3cc1b195b29551c10fea40889dae92ac3b55 Mon Sep 17 00:00:00 2001 From: Baptiste Fontaine Date: Mon, 4 Jan 2016 13:41:38 +0100 Subject: [PATCH] integration tests: fix failing test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- Library/Homebrew/test/test_integration_cmds.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/test/test_integration_cmds.rb b/Library/Homebrew/test/test_integration_cmds.rb index 2b1375de5e..dab987b1f6 100644 --- a/Library/Homebrew/test/test_integration_cmds.rb +++ b/Library/Homebrew/test/test_integration_cmds.rb @@ -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