Drop unnecessary parens in tests

This commit is contained in:
Jack Nagel 2014-08-13 17:13:27 -05:00
parent e40143efd5
commit eed8af9b80
4 changed files with 7 additions and 7 deletions

View File

@ -7,7 +7,7 @@ class BuildEnvironmentTests < Homebrew::TestCase
end
def test_shovel_returns_self
assert_same @env, (@env << :foo)
assert_same @env, @env << :foo
end
def test_merge_returns_self

View File

@ -9,7 +9,7 @@ class CompilerQueueTests < Homebrew::TestCase
end
def test_shovel_returns_self
assert_same @q, (@q << Object.new)
assert_same @q, @q << Object.new
end
def test_empty

View File

@ -9,7 +9,7 @@ class DependenciesTests < Homebrew::TestCase
end
def test_shovel_returns_self
assert_same @deps, (@deps << Dependency.new("foo"))
assert_same @deps, @deps << Dependency.new("foo")
end
def test_no_duplicate_deps
@ -86,7 +86,7 @@ class RequirementsTests < Homebrew::TestCase
end
def test_shovel_returns_self
assert_same @reqs, (@reqs << Object.new)
assert_same @reqs, @reqs << Object.new
end
def test_merging_multiple_dependencies

View File

@ -70,15 +70,15 @@ class OptionsTests < Homebrew::TestCase
end
def test_union_returns_options
assert_instance_of Options, (@options + Options.new)
assert_instance_of Options, @options + Options.new
end
def test_difference_returns_options
assert_instance_of Options, (@options - Options.new)
assert_instance_of Options, @options - Options.new
end
def test_shovel_returns_self
assert_same @options, (@options << Option.new("foo"))
assert_same @options, @options << Option.new("foo")
end
def test_as_flags