Use the tab in place of build during tests

This commit is contained in:
Jack Nagel 2014-07-30 21:04:17 -05:00
parent 331737ab25
commit 5ccce044ca

View File

@ -479,9 +479,7 @@ class Formula
end end
def test def test
# Adding the used options allows us to use `build.with?` inside of tests @build = Tab.for_formula(self)
tab = Tab.for_name(name)
tab.used_options.each { |opt| build.args << opt unless build.has_opposite_of? opt }
ret = nil ret = nil
mktemp do mktemp do
@testpath = Pathname.pwd @testpath = Pathname.pwd