diff options
| author | Mike McQuaid | 2014-08-13 08:45:04 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2014-08-13 08:45:04 +0100 |
| commit | f93a9aafca2c8fa2f1a7e616d0953280f1ec3352 (patch) | |
| tree | 8fc5879de012fead9ed6bcf7a17ed65697e3721b /Library | |
| parent | 445a512379a41d0446fba08f8c0af7ddcc51ebe6 (diff) | |
| download | brew-f93a9aafca2c8fa2f1a7e616d0953280f1ec3352.tar.bz2 | |
Revert "Drop unnecessary to_a calls in options tests"
This reverts commit 6f29c36aed9d951499146054a4caca702fa33d1a.
Diffstat (limited to 'Library')
| -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 e10a7e969..264ef772a 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).sort + assert_equal [foo, bar, baz].sort, (@options | options).to_a.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).sort + assert_equal [option1, option2].sort, Options.create(array).to_a.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 + assert_equal [verbose, debug].sort, Options.create(array).to_a.sort end def test_copies_do_not_share_underlying_collection |
