From 472a2cec1ecfcecb63ef6df9bd78592838fac600 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 7 Aug 2014 17:39:55 -0500 Subject: [PATCH] Avoid using setters in tab tests --- Library/Homebrew/test/test_tab.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Library/Homebrew/test/test_tab.rb b/Library/Homebrew/test/test_tab.rb index 2b7605d549..bb08cc5c35 100644 --- a/Library/Homebrew/test/test_tab.rb +++ b/Library/Homebrew/test/test_tab.rb @@ -48,10 +48,8 @@ class TabTests < Homebrew::TestCase end def test_universal? - refute_predicate @tab, :universal? - @used << "universal" - @tab.used_options = @used.map(&:to_s) - assert_predicate @tab, :universal? + tab = Tab.new(:used_options => %w[--universal]) + assert_predicate tab, :universal? end def test_options