Assert on state, not something that didn't happen

This commit is contained in:
Jack Nagel 2013-10-14 21:46:21 -05:00
parent cb18dedce4
commit d87f1fb5ec

View File

@ -55,22 +55,19 @@ class FormulaValidationTests < Test::Unit::TestCase
end end
def test_devel_only_valid def test_devel_only_valid
assert_nothing_raised do f = formula do
formula do devel do
devel do url "foo"
url "foo" version "1.0"
version "1.0"
end
end end
end end
assert_equal "foo", f.url
end end
def test_head_only_valid def test_head_only_valid
assert_nothing_raised do f = formula { head "foo" }
formula do assert_equal "foo", f.url
head "foo"
end
end
end end
def test_empty_formula_invalid def test_empty_formula_invalid