aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_formula_validation.rb
diff options
context:
space:
mode:
authorJack Nagel2014-12-28 21:43:04 -0500
committerJack Nagel2014-12-28 21:56:06 -0500
commitbade3d93ba3085b3c61b1947e01f5e8ef9caf2e6 (patch)
tree44e083b7d6cc5989ccd19e418350a38f106a0929 /Library/Homebrew/test/test_formula_validation.rb
parent2e3260a777bbfaed2ba2d723d91773439fbfb7b5 (diff)
downloadhomebrew-bade3d93ba3085b3c61b1947e01f5e8ef9caf2e6.tar.bz2
Use formula helper in tests
Diffstat (limited to 'Library/Homebrew/test/test_formula_validation.rb')
-rw-r--r--Library/Homebrew/test/test_formula_validation.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/test/test_formula_validation.rb b/Library/Homebrew/test/test_formula_validation.rb
index e4f43af71..796282206 100644
--- a/Library/Homebrew/test/test_formula_validation.rb
+++ b/Library/Homebrew/test/test_formula_validation.rb
@@ -8,7 +8,7 @@ class FormulaValidationTests < Homebrew::TestCase
end
def test_cant_override_brew
- e = assert_raises(RuntimeError) { Class.new(Formula) { def brew; end } }
+ e = assert_raises(RuntimeError) { formula { def brew; end } }
assert_match %r{You cannot override Formula#brew}, e.message
end