From 5ccce044ca04b9586667b538f818d4a018f21fa7 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Wed, 30 Jul 2014 21:04:17 -0500 Subject: [PATCH] Use the tab in place of build during tests --- Library/Homebrew/formula.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 863037bdbb..82e2a5f366 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -479,9 +479,7 @@ class Formula end def test - # Adding the used options allows us to use `build.with?` inside of tests - tab = Tab.for_name(name) - tab.used_options.each { |opt| build.args << opt unless build.has_opposite_of? opt } + @build = Tab.for_formula(self) ret = nil mktemp do @testpath = Pathname.pwd