aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
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