Make a specific assertion in this test

This commit is contained in:
Jack Nagel 2013-04-13 17:40:14 -05:00
parent a05bb48807
commit 00bcc5e8ad

View File

@ -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