diff options
| author | Jack Nagel | 2014-08-29 19:38:32 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-08-29 19:38:32 -0500 |
| commit | 305e3aa22934a5f91af6eccfbb5dae97a8455fc6 (patch) | |
| tree | 7e48e894c859eb72a8d6d3db067a245bef1219d1 /Library/Homebrew/test | |
| parent | dd4a7c78a738687595fd0c0138e74b073a5cbc19 (diff) | |
| download | homebrew-305e3aa22934a5f91af6eccfbb5dae97a8455fc6.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 |
