Add test for dependency options

This commit is contained in:
Jack Nagel 2013-08-31 16:09:03 -05:00
parent 9dc8ddf054
commit 6ed24d3877

View File

@ -209,4 +209,15 @@ class FormulaTests < Test::Unit::TestCase
ensure
path.unlink
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