diff options
Diffstat (limited to 'Library/Homebrew/test/test_options.rb')
| -rw-r--r-- | Library/Homebrew/test/test_options.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Library/Homebrew/test/test_options.rb b/Library/Homebrew/test/test_options.rb index 604727961..9b123bc3c 100644 --- a/Library/Homebrew/test/test_options.rb +++ b/Library/Homebrew/test/test_options.rb @@ -1,5 +1,5 @@ -require 'testing_env' -require 'options' +require "testing_env" +require "options" class OptionTests < Homebrew::TestCase def setup @@ -96,7 +96,7 @@ class OptionsTests < Homebrew::TestCase def test_as_flags @options << Option.new("foo") - assert_equal %w{--foo}, @options.as_flags + assert_equal %w[--foo], @options.as_flags end def test_to_a @@ -112,14 +112,14 @@ class OptionsTests < Homebrew::TestCase end def test_intersection - foo, bar, baz = %w{foo bar baz}.map { |o| Option.new(o) } + foo, bar, baz = %w[foo bar baz].map { |o| Option.new(o) } options = Options.new << foo << bar @options << foo << baz assert_equal [foo], (@options & options).to_a end def test_set_union - foo, bar, baz = %w{foo bar baz}.map { |o| Option.new(o) } + 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 @@ -131,7 +131,7 @@ class OptionsTests < Homebrew::TestCase end def test_create_with_array - array = %w{--foo --bar} + array = %w[--foo --bar] option1 = Option.new("foo") option2 = Option.new("bar") assert_equal [option1, option2].sort, Options.create(array).sort |
