diff options
| author | Mike McQuaid | 2016-09-18 13:28:15 +0100 |
|---|---|---|
| committer | GitHub | 2016-09-18 13:28:15 +0100 |
| commit | 59b7f16bfd9c1968aae0a2f1cd9a43d3d160d99f (patch) | |
| tree | 17d2adec882cdeef36a8fd40d891fe7fe4021572 /Library/Homebrew/test/test_patch.rb | |
| parent | 56541001a45ea58c54096bc42584c17d72b1415a (diff) | |
| parent | 1bdbb0f462e4c3557bbcba0b203696bdcf025bb4 (diff) | |
| download | brew-59b7f16bfd9c1968aae0a2f1cd9a43d3d160d99f.tar.bz2 | |
Merge pull request #989 from MikeMcQuaid/rubocop-final
Rubocop: apply auto-corrections and don't use hash-rockets
Diffstat (limited to 'Library/Homebrew/test/test_patch.rb')
| -rw-r--r-- | Library/Homebrew/test/test_patch.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/Library/Homebrew/test/test_patch.rb b/Library/Homebrew/test/test_patch.rb index 3b489b35c..120f0a3a5 100644 --- a/Library/Homebrew/test/test_patch.rb +++ b/Library/Homebrew/test/test_patch.rb @@ -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 @@ -76,8 +76,8 @@ 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" + p1: "http://example.com/patch1.diff", + p0: "http://example.com/patch0.diff" ) assert_equal 2, patches.length assert_equal 1, patches.count { |p| p.strip == :p0 } @@ -86,10 +86,10 @@ class LegacyPatchTests < Homebrew::TestCase def test_mixed_hash_to_arrays patches = Patch.normalize_legacy_patches( - :p1 => ["http://example.com/patch10.diff", - "http://example.com/patch11.diff"], - :p0 => ["http://example.com/patch00.diff", - "http://example.com/patch01.diff"] + p1: ["http://example.com/patch10.diff", + "http://example.com/patch11.diff"], + p0: ["http://example.com/patch00.diff", + "http://example.com/patch01.diff"] ) assert_equal 4, patches.length |
