aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2014-07-30 21:04:17 -0500
committerJack Nagel2014-07-30 21:04:17 -0500
commit66b034b943c2c4234c71165d244a581bde5b0b91 (patch)
treea0f60592186f0333297dd0e9ac6e2cfb49676260
parent9426831de9d79bb56f21309a333e99df3cacbaf6 (diff)
downloadhomebrew-66b034b943c2c4234c71165d244a581bde5b0b91.tar.bz2
Use the tab in place of build during tests
-rw-r--r--Library/Homebrew/formula.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 863037bdb..82e2a5f36 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