diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/test/test_software_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_software_spec.rb b/Library/Homebrew/test/test_software_spec.rb index 57fb4d6bf..db2242022 100644 --- a/Library/Homebrew/test/test_software_spec.rb +++ b/Library/Homebrew/test/test_software_spec.rb @@ -66,6 +66,16 @@ class SoftwareSpecTests < Homebrew::TestCase refute @spec.option_defined?("cxx11") end + def test_option_description + @spec.option("bar", "description") + assert_equal "description", @spec.options.first.description + end + + def test_option_description_defaults_to_empty_string + @spec.option("foo") + assert_equal "", @spec.options.first.description + end + def test_depends_on @spec.depends_on('foo') assert_equal 'foo', @spec.deps.first.name |
