Use the build accessor rather than metaprogramming

This commit is contained in:
Jack Nagel 2014-08-16 23:04:15 -05:00
parent 281646b089
commit 92eb96aca0

View File

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