aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-07-30 22:24:24 -0500
committerJack Nagel2014-07-30 22:24:24 -0500
commit5a94cfc4a34f8ce157922fa017484f1617b37e25 (patch)
tree1e6754aa2c18518fa8a231a1459ab0597a6190ee /Library
parentfd86e6d636496c5221b8f93282a804e4bf3d21f1 (diff)
downloadbrew-5a94cfc4a34f8ce157922fa017484f1617b37e25.tar.bz2
Use a module since the @build ivar is going away soon
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 82e2a5f36..8d5fb3146 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -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