From dd94518a409ca54fef1e08f4a0be894d53794636 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sat, 31 Aug 2013 20:40:06 -0500 Subject: [PATCH] Add test for option description rules --- Library/Homebrew/test/test_formula.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Library/Homebrew/test/test_formula.rb b/Library/Homebrew/test/test_formula.rb index a55d0d2bfe..f6e1e9dd94 100644 --- a/Library/Homebrew/test/test_formula.rb +++ b/Library/Homebrew/test/test_formula.rb @@ -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