Add test for option description rules

This commit is contained in:
Jack Nagel committed 2013-08-31 20:40:06 -05:00
1 parent a30d082058
commit de55321663
1 file changed
+10
+10
View File
@@ -220,4 +220,14 @@ class FormulaTests < Test::Unit::TestCase
assert f.build.has_option?('with-foo')
assert f.build.has_option?('without-bar')
end
def test_explicit_options_override_default_dep_option_description
f = formula do
url 'foo-1.0'
option 'with-foo', 'blah'
depends_on 'foo' => :optional
end
assert_equal 'blah', f.build.first.description
end
end