From 03a4ecfbcaf758f5c2c1b06fcbf332c44a6e1d68 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sat, 27 Apr 2013 14:44:48 -0500 Subject: Allow `brew versions` to work with underspecified formulae --- Library/Homebrew/test/test_formula_validation.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Library/Homebrew/test/test_formula_validation.rb') diff --git a/Library/Homebrew/test/test_formula_validation.rb b/Library/Homebrew/test/test_formula_validation.rb index 9afdc278c..c87f842a1 100644 --- a/Library/Homebrew/test/test_formula_validation.rb +++ b/Library/Homebrew/test/test_formula_validation.rb @@ -78,7 +78,7 @@ class FormulaValidationTests < Test::Unit::TestCase end def test_empty_formula_invalid - e = assert_raises(RuntimeError) { formula {} } - assert_equal "Formulae require at least a URL", e.message + e = assert_raises(FormulaSpecificationError) { formula {} } + assert_equal "formulae require at least a URL", e.message end end -- cgit v1.2.3