aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formula.rb
diff options
context:
space:
mode:
authorJack Nagel2013-06-08 21:26:16 -0500
committerJack Nagel2013-06-08 21:31:44 -0500
commitbae36f0830df37989b86ece36cc5282f32d7d087 (patch)
tree0602049c5e00652085a1921f35006a0eeb62fe37 /Library/Homebrew/formula.rb
parentb0fe493ca11adc3d46a6d34e25c4c5fc8a7abb25 (diff)
downloadbrew-bae36f0830df37989b86ece36cc5282f32d7d087.tar.bz2
Make Test::Unit assertions available in formula tests
Closes Homebrew/homebrew#18753. Closes Homebrew/homebrew#20358.
Diffstat (limited to 'Library/Homebrew/formula.rb')
-rw-r--r--Library/Homebrew/formula.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 06dfafa45..402c4500b 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -562,6 +562,8 @@ class Formula
end
def test
+ require 'test/unit/assertions'
+ extend(Test::Unit::Assertions)
ret = nil
mktemp do
@testpath = Pathname.pwd