aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-08-31 16:09:03 -0500
committerJack Nagel2013-08-31 16:09:49 -0500
commit6ed24d3877eca5b117924831ae3e3267123e0675 (patch)
tree79627dfac1410c6e74a20ad8f88de39369a8a114 /Library
parent9dc8ddf0542fa790e4189568dca668f08e62c8cb (diff)
downloadbrew-6ed24d3877eca5b117924831ae3e3267123e0675.tar.bz2
Add test for dependency options
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/test/test_formula.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_formula.rb b/Library/Homebrew/test/test_formula.rb
index 006ed7be3..a55d0d2bf 100644
--- a/Library/Homebrew/test/test_formula.rb
+++ b/Library/Homebrew/test/test_formula.rb
@@ -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