Skip to content
Snippets Groups Projects
Commit 00bcc5e8 authored by Jack Nagel's avatar Jack Nagel
Browse files

Make a specific assertion in this test

parent a05bb488
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment