From e143bcef259ca76b2124e6e73bd9bdf872418723 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Tue, 12 Aug 2014 20:09:35 -0500 Subject: Always pass an Options instance to the BuildOptions constructor --- Library/Homebrew/test/test_build_options.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'Library/Homebrew/test') diff --git a/Library/Homebrew/test/test_build_options.rb b/Library/Homebrew/test/test_build_options.rb index e3ed44f9d..4ee12974b 100644 --- a/Library/Homebrew/test/test_build_options.rb +++ b/Library/Homebrew/test/test_build_options.rb @@ -3,10 +3,8 @@ require 'build_options' class BuildOptionsTests < Homebrew::TestCase def setup - 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") + args = Options.coerce(%w(--with-foo --with-bar --without-qux)) + opts = Options.coerce(%w(--with-foo --with-bar --without-baz --without-qux)) @build = BuildOptions.new(args, opts) end -- cgit v1.2.3