diff options
| author | Jack Nagel | 2014-08-13 11:09:57 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-08-13 11:09:57 -0500 |
| commit | fcf2c89c8c363bd797d281d025cd3d29151b14c8 (patch) | |
| tree | 4ac81cbe109a49dc7e1ce20d8fc66b4bf39fe30e | |
| parent | 77b5c6d7d0b06dd5e773acb36afcd5b76a092b03 (diff) | |
| download | homebrew-fcf2c89c8c363bd797d281d025cd3d29151b14c8.tar.bz2 | |
Remove unused branches from Options.coerce
| -rw-r--r-- | Library/Homebrew/options.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/test/test_options.rb | 9 |
2 files changed, 0 insertions, 11 deletions
diff --git a/Library/Homebrew/options.rb b/Library/Homebrew/options.rb index 6b982a405..86be67ea9 100644 --- a/Library/Homebrew/options.rb +++ b/Library/Homebrew/options.rb @@ -116,8 +116,6 @@ class Options def self.coerce(arg) case arg - when self then arg - when Option then new << arg when Array opts = new arg.each do |a| diff --git a/Library/Homebrew/test/test_options.rb b/Library/Homebrew/test/test_options.rb index 4b9915874..250360a30 100644 --- a/Library/Homebrew/test/test_options.rb +++ b/Library/Homebrew/test/test_options.rb @@ -132,15 +132,6 @@ class OptionsTests < Homebrew::TestCase assert_equal [foo, bar, baz].sort, (@options | options).to_a.sort end - def test_coerce_with_options - assert_same @options, Options.coerce(@options) - end - - def test_coerce_with_option - option = Option.new("foo") - assert_equal option, Options.coerce(option).to_a.first - end - def test_coerce_with_array array = %w{--foo --bar} option1 = Option.new("foo") |
