Assert on state, not something that didn't happen
This commit is contained in:
parent
cb18dedce4
commit
d87f1fb5ec
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user