diff options
| author | Mike McQuaid | 2014-08-13 08:45:08 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2014-08-13 08:46:17 +0100 |
| commit | 9f14262d921bed0cf718bc5a7aded551955673c9 (patch) | |
| tree | 68e337e37db11a6c097454731c41d61d35a67764 /Library/Homebrew/test | |
| parent | d4aa7b8df04834b0a68e4b13a0e07bc92635cb85 (diff) | |
| download | brew-9f14262d921bed0cf718bc5a7aded551955673c9.tar.bz2 | |
Revert "Always pass an Options instance to the BuildOptions constructor"
This reverts commit e143bcef259ca76b2124e6e73bd9bdf872418723.
Closes Homebrew/homebrew#31557.
Closes Homebrew/homebrew#31559.
Closes Homebrew/homebrew#31561.
Closes Homebrew/homebrew#31562.
Diffstat (limited to 'Library/Homebrew/test')
| -rw-r--r-- | Library/Homebrew/test/test_build_options.rb | 6 |
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 |
