aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test
diff options
context:
space:
mode:
authorJack Nagel2014-08-13 11:09:57 -0500
committerJack Nagel2014-08-13 11:09:57 -0500
commitc5a888fb3ac504bb08848b260d7ebc534e903c49 (patch)
tree1e3d73936fe464d24877d26873c22b5ea67485cb /Library/Homebrew/test
parent5c1c9e655055bf5004d849546506d148acde6a07 (diff)
downloadbrew-c5a888fb3ac504bb08848b260d7ebc534e903c49.tar.bz2
Always pass an Options instance to the BuildOptions constructor
Diffstat (limited to 'Library/Homebrew/test')
-rw-r--r--Library/Homebrew/test/test_build_options.rb6
1 files changed, 2 insertions, 4 deletions
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