Drop unnecessary parens in tests
This commit is contained in:
parent
e40143efd5
commit
eed8af9b80
@ -7,7 +7,7 @@ class BuildEnvironmentTests < Homebrew::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_shovel_returns_self
|
def test_shovel_returns_self
|
||||||
assert_same @env, (@env << :foo)
|
assert_same @env, @env << :foo
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_merge_returns_self
|
def test_merge_returns_self
|
||||||
|
|||||||
@ -9,7 +9,7 @@ class CompilerQueueTests < Homebrew::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_shovel_returns_self
|
def test_shovel_returns_self
|
||||||
assert_same @q, (@q << Object.new)
|
assert_same @q, @q << Object.new
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_empty
|
def test_empty
|
||||||
|
|||||||
@ -9,7 +9,7 @@ class DependenciesTests < Homebrew::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_shovel_returns_self
|
def test_shovel_returns_self
|
||||||
assert_same @deps, (@deps << Dependency.new("foo"))
|
assert_same @deps, @deps << Dependency.new("foo")
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_no_duplicate_deps
|
def test_no_duplicate_deps
|
||||||
@ -86,7 +86,7 @@ class RequirementsTests < Homebrew::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_shovel_returns_self
|
def test_shovel_returns_self
|
||||||
assert_same @reqs, (@reqs << Object.new)
|
assert_same @reqs, @reqs << Object.new
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_merging_multiple_dependencies
|
def test_merging_multiple_dependencies
|
||||||
|
|||||||
@ -70,15 +70,15 @@ class OptionsTests < Homebrew::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_union_returns_options
|
def test_union_returns_options
|
||||||
assert_instance_of Options, (@options + Options.new)
|
assert_instance_of Options, @options + Options.new
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_difference_returns_options
|
def test_difference_returns_options
|
||||||
assert_instance_of Options, (@options - Options.new)
|
assert_instance_of Options, @options - Options.new
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_shovel_returns_self
|
def test_shovel_returns_self
|
||||||
assert_same @options, (@options << Option.new("foo"))
|
assert_same @options, @options << Option.new("foo")
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_as_flags
|
def test_as_flags
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user