aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_build_options.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/test/test_build_options.rb')
-rw-r--r--Library/Homebrew/test/test_build_options.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/Library/Homebrew/test/test_build_options.rb b/Library/Homebrew/test/test_build_options.rb
index 4ee12974b..e3ed44f9d 100644
--- a/Library/Homebrew/test/test_build_options.rb
+++ b/Library/Homebrew/test/test_build_options.rb
@@ -3,8 +3,10 @@ require 'build_options'
class BuildOptionsTests < Homebrew::TestCase
def setup
- args = Options.coerce(%w(--with-foo --with-bar --without-qux))
- opts = Options.coerce(%w(--with-foo --with-bar --without-baz --without-qux))
+ args = %w{--with-foo --with-bar --without-qux}
+ opts = Options.new
+ opts << Option.new("with-foo") << Option.new("with-bar")
+ opts << Option.new("without-baz") << Option.new("without-qux")
@build = BuildOptions.new(args, opts)
end