Use a module since the @build ivar is going away soon

This commit is contained in:
Jack Nagel 2014-07-30 22:24:24 -05:00
parent fd86e6d636
commit 5a94cfc4a3

View File

@ -479,7 +479,8 @@ class Formula
end
def test
@build = Tab.for_formula(self)
tab = Tab.for_formula(self)
extend Module.new { define_method(:build) { tab } }
ret = nil
mktemp do
@testpath = Pathname.pwd