From d443089270addfc9588c9efba399763523b88de4 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Wed, 13 Aug 2014 17:13:49 -0500 Subject: Simplify tab test setup --- Library/Homebrew/test/test_tab.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Library') diff --git a/Library/Homebrew/test/test_tab.rb b/Library/Homebrew/test/test_tab.rb index 599fb89de..68e5dfb97 100644 --- a/Library/Homebrew/test/test_tab.rb +++ b/Library/Homebrew/test/test_tab.rb @@ -4,9 +4,8 @@ require "formula" class TabTests < Homebrew::TestCase def setup - @used, @unused = Options.new, Options.new - @used << Option.new("with-foo") << Option.new("without-bar") - @unused << Option.new("with-baz") << Option.new("without-qux") + @used = Options.create(%w(--with-foo --without-bar)) + @unused = Options.create(%w(--with-baz --without-qux)) @tab = Tab.new({ :used_options => @used.map(&:to_s), -- cgit v1.2.3