diff options
| author | Jack Nagel | 2014-08-13 00:33:18 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-08-13 00:33:18 -0500 |
| commit | 6f29c36aed9d951499146054a4caca702fa33d1a (patch) | |
| tree | e9542b354bdc07289ec3d57b6f4e951be5175fe1 | |
| parent | 8d2ef974a3a87bf4207f71ccb8a7b4776e16a016 (diff) | |
| download | homebrew-6f29c36aed9d951499146054a4caca702fa33d1a.tar.bz2 | |
Drop unnecessary to_a calls in options tests
| -rw-r--r-- | Library/Homebrew/test/test_options.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/test/test_options.rb b/Library/Homebrew/test/test_options.rb index 264ef772a..e10a7e969 100644 --- a/Library/Homebrew/test/test_options.rb +++ b/Library/Homebrew/test/test_options.rb @@ -129,21 +129,21 @@ class OptionsTests < Homebrew::TestCase foo, bar, baz = %w{foo bar baz}.map { |o| Option.new(o) } options = Options.new << foo << bar @options << foo << baz - assert_equal [foo, bar, baz].sort, (@options | options).to_a.sort + assert_equal [foo, bar, baz].sort, (@options | options).sort end def test_create_with_array array = %w{--foo --bar} option1 = Option.new("foo") option2 = Option.new("bar") - assert_equal [option1, option2].sort, Options.create(array).to_a.sort + 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).to_a.sort + assert_equal [verbose, debug].sort, Options.create(array).sort end def test_copies_do_not_share_underlying_collection |
