Use the tab in place of build during tests
This commit is contained in:
parent
331737ab25
commit
5ccce044ca
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user