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

Assert on state, not something that didn't happen

parent cb18dedc
No related branches found
No related tags found
No related merge requests found
......@@ -55,22 +55,19 @@ class FormulaValidationTests < Test::Unit::TestCase
end
def test_devel_only_valid
assert_nothing_raised do
formula do
devel do
url "foo"
version "1.0"
end
f = formula do
devel do
url "foo"
version "1.0"
end
end
assert_equal "foo", f.url
end
def test_head_only_valid
assert_nothing_raised do
formula do
head "foo"
end
end
f = formula { head "foo" }
assert_equal "foo", f.url
end
def test_empty_formula_invalid
......
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