diff options
Diffstat (limited to 'Library/Homebrew/test/test_options.rb')
| -rw-r--r-- | Library/Homebrew/test/test_options.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Library/Homebrew/test/test_options.rb b/Library/Homebrew/test/test_options.rb index 1bd5ba3b0..fcf49a8d8 100644 --- a/Library/Homebrew/test/test_options.rb +++ b/Library/Homebrew/test/test_options.rb @@ -37,6 +37,23 @@ class DeprecatedOptionTests < Homebrew::TestCase def test_current assert_equal "bar", @deprecated_option.current end + + def test_old + assert_equal "--foo", @deprecated_option.old_flag + end + + def test_current + assert_equal "--bar", @deprecated_option.current_flag + end + + def test_equality + foobar = DeprecatedOption.new("foo", "bar") + boofar = DeprecatedOption.new("boo", "far") + assert_equal foobar, @deprecated_option + refute_equal boofar, @deprecated_option + assert_eql @deprecated_option, foobar + refute_eql @deprecated_option, boofar + end end class OptionsTests < Homebrew::TestCase |
