From 9e97eadccbd99df1c6ffe489ab316d7ebde7fe86 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Sun, 12 Feb 2017 15:06:54 +0000 Subject: 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). --- Library/Homebrew/test/patch_test.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Library/Homebrew/test/patch_test.rb') 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 -- cgit v1.2.3