aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/patch_test.rb
diff options
context:
space:
mode:
authorAlyssa Ross2017-02-12 15:06:54 +0000
committerAlyssa Ross2017-02-12 15:11:38 +0000
commit9e97eadccbd99df1c6ffe489ab316d7ebde7fe86 (patch)
tree78353f4e7cfe59f5da266a951939c868db11c170 /Library/Homebrew/test/patch_test.rb
parent76dfe030c70cde3aee731e5a68b82b9ac227b89c (diff)
downloadbrew-9e97eadccbd99df1c6ffe489ab316d7ebde7fe86.tar.bz2
rubocop: trailing comma in multiline method calls
Discussed in https://github.com/Homebrew/brew/pull/1987/files#r100693581. This was originally ommitted because it wasn't compatible with Ruby 1.8. (See https://github.com/Homebrew/legacy-homebrew/pull/48144#r49928971).
Diffstat (limited to 'Library/Homebrew/test/patch_test.rb')
-rw-r--r--Library/Homebrew/test/patch_test.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/Library/Homebrew/test/patch_test.rb b/Library/Homebrew/test/patch_test.rb
index f5a61398a..3055eaf48 100644
--- a/Library/Homebrew/test/patch_test.rb
+++ b/Library/Homebrew/test/patch_test.rb
@@ -48,7 +48,7 @@ class LegacyPatchTests < Homebrew::TestCase
def test_patch_array
patches = Patch.normalize_legacy_patches(
- %w[http://example.com/patch1.diff http://example.com/patch2.diff]
+ %w[http://example.com/patch1.diff http://example.com/patch2.diff],
)
assert_equal 2, patches.length
@@ -58,7 +58,7 @@ class LegacyPatchTests < Homebrew::TestCase
def test_p0_hash_to_string
patches = Patch.normalize_legacy_patches(
- p0: "http://example.com/patch.diff"
+ p0: "http://example.com/patch.diff",
)
assert_equal 1, patches.length
@@ -67,7 +67,7 @@ class LegacyPatchTests < Homebrew::TestCase
def test_p1_hash_to_string
patches = Patch.normalize_legacy_patches(
- p1: "http://example.com/patch.diff"
+ p1: "http://example.com/patch.diff",
)
assert_equal 1, patches.length
@@ -77,7 +77,7 @@ class LegacyPatchTests < Homebrew::TestCase
def test_mixed_hash_to_strings
patches = Patch.normalize_legacy_patches(
p1: "http://example.com/patch1.diff",
- p0: "http://example.com/patch0.diff"
+ p0: "http://example.com/patch0.diff",
)
assert_equal 2, patches.length
assert_equal 1, patches.count { |p| p.strip == :p0 }
@@ -89,7 +89,7 @@ class LegacyPatchTests < Homebrew::TestCase
p1: ["http://example.com/patch10.diff",
"http://example.com/patch11.diff"],
p0: ["http://example.com/patch00.diff",
- "http://example.com/patch01.diff"]
+ "http://example.com/patch01.diff"],
)
assert_equal 4, patches.length