diff options
| author | Jack Nagel | 2014-08-29 19:38:32 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-08-29 19:38:32 -0500 |
| commit | 750d7bb2c81a58f277fa6813a7286ed68b345ebd (patch) | |
| tree | f50a1abc2340fafa7598ed0bfeadbc1b632c6845 /Library/Homebrew/test | |
| parent | b14851903c258b62968581f26ab9537f89b37456 (diff) | |
| download | brew-750d7bb2c81a58f277fa6813a7286ed68b345ebd.tar.bz2 | |
Options internals no longer need to support switches
Diffstat (limited to 'Library/Homebrew/test')
| -rw-r--r-- | Library/Homebrew/test/test_options.rb | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/Library/Homebrew/test/test_options.rb b/Library/Homebrew/test/test_options.rb index 917ad590c..73ff2b752 100644 --- a/Library/Homebrew/test/test_options.rb +++ b/Library/Homebrew/test/test_options.rb @@ -23,12 +23,6 @@ class OptionTests < Homebrew::TestCase assert_empty @option.description assert_equal "foo", Option.new("foo", "foo").description end - - def test_preserves_short_options - option = Option.new("-d") - assert_equal "-d", option.flag - assert_equal "d", option.name - end end class OptionsTests < Homebrew::TestCase @@ -108,11 +102,4 @@ class OptionsTests < Homebrew::TestCase option2 = Option.new("bar") assert_equal [option1, option2].sort, Options.create(array).sort end - - def test_create_splits_multiple_switches_with_single_dash - array = %w{-vd} - verbose = Option.new("-v") - debug = Option.new("-d") - assert_equal [verbose, debug].sort, Options.create(array).sort - end end |
