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
commit348ea31db8effe491ea8bc4de1e8ebf8f18a59af (patch)
tree32ead3d52db059d3890b53049a59c2938db22f1d /Library
parent21979aa9f69bfc011489ba5413071e8f4eb656d1 (diff)
downloadhomebrew-348ea31db8effe491ea8bc4de1e8ebf8f18a59af.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