Avoid using setters in tab tests

This commit is contained in:
Jack Nagel 2014-08-07 17:39:55 -05:00
parent 0c51cf1245
commit 472a2cec1e

View File

@ -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