diff options
| author | Jack Nagel | 2013-04-13 17:40:14 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-04-13 17:40:14 -0500 |
| commit | 00bcc5e8ad854f1ab1113dccac1f279116897cf8 (patch) | |
| tree | 011e5384dea4e3605aed07cc5dc7dc6b689d2686 /Library | |
| parent | a05bb488073cc8974d263576ca61706c76e110d0 (diff) | |
| download | brew-00bcc5e8ad854f1ab1113dccac1f279116897cf8.tar.bz2 | |
Make a specific assertion in this test
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/test/test_formula_validation.rb | 5 |
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 |
