Add test for dependency options
This commit is contained in:
parent
9dc8ddf054
commit
6ed24d3877
@ -209,4 +209,15 @@ class FormulaTests < Test::Unit::TestCase
|
|||||||
ensure
|
ensure
|
||||||
path.unlink
|
path.unlink
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_dependency_option_integration
|
||||||
|
f = formula do
|
||||||
|
url 'foo-1.0'
|
||||||
|
depends_on 'foo' => :optional
|
||||||
|
depends_on 'bar' => :recommended
|
||||||
|
end
|
||||||
|
|
||||||
|
assert f.build.has_option?('with-foo')
|
||||||
|
assert f.build.has_option?('without-bar')
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user