aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-08-16 23:04:15 -0500
committerJack Nagel2014-08-16 23:04:48 -0500
commit92eb96aca08a22d69d0c7a4455444e9af95acf63 (patch)
tree863647dd097ea2f07245e951ffe1ef5fef582286 /Library
parent281646b0895de6d1f8404730d1b94d4f90700161 (diff)
downloadbrew-92eb96aca08a22d69d0c7a4455444e9af95acf63.tar.bz2
Use the build accessor rather than metaprogramming
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index d70839d47..f0a10bc1e 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -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