diff options
| author | Jack Nagel | 2014-08-07 00:03:25 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-08-07 00:03:32 -0500 |
| commit | 405a02075c123dd5496f3d30fc99365c23c990ee (patch) | |
| tree | 430e5d3b2503cdfc8f2ce6b7a51289cec379c4d7 | |
| parent | 5377a22cc15b74f746bef51109e9129aa955f97b (diff) | |
| download | homebrew-405a02075c123dd5496f3d30fc99365c23c990ee.tar.bz2 | |
Add a test for cxx11 option special case
| -rw-r--r-- | Library/Homebrew/test/test_software_spec.rb | 6 |
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 |
