aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-08-31 20:40:06 -0500
committerJack Nagel2013-08-31 20:40:06 -0500
commitdd94518a409ca54fef1e08f4a0be894d53794636 (patch)
tree0a84d6a607594a9d83af060f1f2bb116ffdfd25d /Library
parent0c75f2d280aa48a03d74b887a824fe783e4eeadc (diff)
downloadbrew-dd94518a409ca54fef1e08f4a0be894d53794636.tar.bz2
Add test for option description rules
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/test/test_formula.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_formula.rb b/Library/Homebrew/test/test_formula.rb
index a55d0d2bf..f6e1e9dd9 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