diff options
| author | Jack Nagel | 2014-08-13 17:13:49 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-08-13 17:15:03 -0500 |
| commit | d443089270addfc9588c9efba399763523b88de4 (patch) | |
| tree | 3369004f5312942551c9f23655fdecb5ffe8e5cd | |
| parent | eed8af9b80979fcdd55dc44c963392dc84e63d4f (diff) | |
| download | brew-d443089270addfc9588c9efba399763523b88de4.tar.bz2 | |
Simplify tab test setup
| -rw-r--r-- | Library/Homebrew/test/test_tab.rb | 5 |
1 files changed, 2 insertions, 3 deletions
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), |
