aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_patch.rb
diff options
context:
space:
mode:
authorMike McQuaid2016-09-18 13:28:15 +0100
committerGitHub2016-09-18 13:28:15 +0100
commit59b7f16bfd9c1968aae0a2f1cd9a43d3d160d99f (patch)
tree17d2adec882cdeef36a8fd40d891fe7fe4021572 /Library/Homebrew/test/test_patch.rb
parent56541001a45ea58c54096bc42584c17d72b1415a (diff)
parent1bdbb0f462e4c3557bbcba0b203696bdcf025bb4 (diff)
downloadbrew-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.rb16
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