aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXu Cheng2015-08-03 21:18:00 +0800
committerXu Cheng2015-08-03 21:27:40 +0800
commita5a1cc9865466fa2d4cc21a306fd4a77f13628f8 (patch)
tree5505cd7b3d10be7af142024a7066b9e53680440d
parent1af6ffa950a6b512fa3ac3cdcfb3fc1d81d5b6e4 (diff)
downloadbrew-a5a1cc9865466fa2d4cc21a306fd4a77f13628f8.tar.bz2
fix ruby syntax warnings
Closes Homebrew/homebrew#42409. Signed-off-by: Xu Cheng <xucheng@me.com>
-rw-r--r--Library/Homebrew/test/test_download_strategies.rb2
-rw-r--r--Library/Homebrew/test/test_formula_validation.rb2
-rw-r--r--Library/Homebrew/test/test_patching.rb8
3 files changed, 6 insertions, 6 deletions
diff --git a/Library/Homebrew/test/test_download_strategies.rb b/Library/Homebrew/test/test_download_strategies.rb
index 26ae8d822..45d0d3188 100644
--- a/Library/Homebrew/test/test_download_strategies.rb
+++ b/Library/Homebrew/test/test_download_strategies.rb
@@ -42,7 +42,7 @@ class VCSDownloadStrategyTests < Homebrew::TestCase
strategy = Class.new(VCSDownloadStrategy) do
def cache_tag
"foo"
- end
+ end
end
downloader = strategy.new("baz", resource)
assert_equal HOMEBREW_CACHE.join("baz--foo"), downloader.cached_location
diff --git a/Library/Homebrew/test/test_formula_validation.rb b/Library/Homebrew/test/test_formula_validation.rb
index 159b7ddd8..c40eb6733 100644
--- a/Library/Homebrew/test/test_formula_validation.rb
+++ b/Library/Homebrew/test/test_formula_validation.rb
@@ -9,7 +9,7 @@ class FormulaValidationTests < Homebrew::TestCase
def test_cant_override_brew
e = assert_raises(RuntimeError) { formula { def brew; end } }
- assert_match /You cannot override Formula#brew/, e.message
+ assert_match(/You cannot override Formula#brew/, e.message)
end
def test_validates_name
diff --git a/Library/Homebrew/test/test_patching.rb b/Library/Homebrew/test/test_patching.rb
index a0e7acec0..85c131021 100644
--- a/Library/Homebrew/test/test_patching.rb
+++ b/Library/Homebrew/test/test_patching.rb
@@ -83,7 +83,7 @@ class PatchingTests < Homebrew::TestCase
assert_patched formula {
def patches
{ :p0 => PATCH_URL_B }
- end
+ end
}
end
@@ -91,7 +91,7 @@ class PatchingTests < Homebrew::TestCase
assert_patched formula {
def patches
[PATCH_URL_A]
- end
+ end
}
end
@@ -99,7 +99,7 @@ class PatchingTests < Homebrew::TestCase
assert_patched formula {
def patches
{ :p1 => PATCH_URL_A }
- end
+ end
}
end
@@ -107,7 +107,7 @@ class PatchingTests < Homebrew::TestCase
assert_patched formula {
def patches
{ :p1 => [PATCH_URL_A] }
- end
+ end
}
end