aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-08-13 00:33:18 -0500
committerJack Nagel2014-08-13 00:33:18 -0500
commit445a512379a41d0446fba08f8c0af7ddcc51ebe6 (patch)
tree91108297a93f794c7688c56d62f7033c33285a90 /Library
parent25395c6de60849ea92c74bed8506d6e209ea7bf4 (diff)
downloadbrew-445a512379a41d0446fba08f8c0af7ddcc51ebe6.tar.bz2
Drop unnecessary to_a calls in options tests
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/test/test_options.rb6
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