Add a test for cxx11 option special case

This commit is contained in:
Jack Nagel 2014-08-07 00:03:25 -05:00
parent 9f6bd0798f
commit fa88b9697c

View File

@ -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