aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-04-13 17:40:14 -0500
committerJack Nagel2013-04-13 17:40:14 -0500
commit00bcc5e8ad854f1ab1113dccac1f279116897cf8 (patch)
tree011e5384dea4e3605aed07cc5dc7dc6b689d2686 /Library
parenta05bb488073cc8974d263576ca61706c76e110d0 (diff)
downloadbrew-00bcc5e8ad854f1ab1113dccac1f279116897cf8.tar.bz2
Make a specific assertion in this test
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/test/test_formula_validation.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/Library/Homebrew/test/test_formula_validation.rb b/Library/Homebrew/test/test_formula_validation.rb
index 22b0eb06c..9afdc278c 100644
--- a/Library/Homebrew/test/test_formula_validation.rb
+++ b/Library/Homebrew/test/test_formula_validation.rb
@@ -12,9 +12,8 @@ class FormulaValidationTests < Test::Unit::TestCase
end
def test_cant_override_brew
- assert_raises(RuntimeError) do
- Class.new(Formula) { def brew; end }
- end
+ e = assert_raises(RuntimeError) { Class.new(Formula) { def brew; end } }
+ assert_equal "You cannot override Formula#brew", e.message
end
def test_validates_name