aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-08-07 17:39:55 -0500
committerJack Nagel2014-08-07 17:39:55 -0500
commit472a2cec1ecfcecb63ef6df9bd78592838fac600 (patch)
treefc00171d6e7b02e0555cad13b3d1e21665b240ed /Library
parent0c51cf1245d7aa41d35584333e8fcb7034b221ab (diff)
downloadbrew-472a2cec1ecfcecb63ef6df9bd78592838fac600.tar.bz2
Avoid using setters in tab tests
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/test/test_tab.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/Library/Homebrew/test/test_tab.rb b/Library/Homebrew/test/test_tab.rb
index 2b7605d54..bb08cc5c3 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