Avoid using setters in tab tests
This commit is contained in:
parent
0c51cf1245
commit
472a2cec1e
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user