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

Add test for dependency options

parent 9dc8ddf0
No related branches found
No related tags found
No related merge requests found
......@@ -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
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