aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-08-07 00:03:25 -0500
committerJack Nagel2014-08-07 00:03:32 -0500
commitfa88b9697c56166f03264f69e2b7a63492fb2564 (patch)
tree880a7b676a07a2caac578e829fe22bb6719de0bc /Library
parent9f6bd0798f8314a0c9269150927bfd3fa650d1ec (diff)
downloadbrew-fa88b9697c56166f03264f69e2b7a63492fb2564.tar.bz2
Add a test for cxx11 option special case
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/test/test_software_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_software_spec.rb b/Library/Homebrew/test/test_software_spec.rb
index 26bfd4aff..57fb4d6bf 100644
--- a/Library/Homebrew/test/test_software_spec.rb
+++ b/Library/Homebrew/test/test_software_spec.rb
@@ -60,6 +60,12 @@ class SoftwareSpecTests < Homebrew::TestCase
assert @spec.option_defined?("foo")
end
+ def test_cxx11_option_special_case
+ @spec.option(:cxx11)
+ assert @spec.option_defined?("c++11")
+ refute @spec.option_defined?("cxx11")
+ end
+
def test_depends_on
@spec.depends_on('foo')
assert_equal 'foo', @spec.deps.first.name