aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_patching.rb
diff options
context:
space:
mode:
authorBrewTestBot2015-08-03 13:09:07 +0100
committerMike McQuaid2015-08-03 13:22:35 +0100
commit13d544e11e92ba8ea3788723432046f8dfe4adf9 (patch)
treee6da18436d9ce956e6fbe80e3185c67cf3b58808 /Library/Homebrew/test/test_patching.rb
parent3b68215be793774fafd9ce124a2065f5968f50e5 (diff)
downloadbrew-13d544e11e92ba8ea3788723432046f8dfe4adf9.tar.bz2
Core files style updates.
Closes Homebrew/homebrew#42354. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Homebrew/test/test_patching.rb')
-rw-r--r--Library/Homebrew/test/test_patching.rb28
1 files changed, 22 insertions, 6 deletions
diff --git a/Library/Homebrew/test/test_patching.rb b/Library/Homebrew/test/test_patching.rb
index 02c73ef8e..a0e7acec0 100644
--- a/Library/Homebrew/test/test_patching.rb
+++ b/Library/Homebrew/test/test_patching.rb
@@ -1,5 +1,5 @@
-require 'testing_env'
-require 'formula'
+require "testing_env"
+require "formula"
class PatchingTests < Homebrew::TestCase
PATCH_URL_A = "file://#{TEST_DIRECTORY}/patches/noop-a.diff"
@@ -80,19 +80,35 @@ class PatchingTests < Homebrew::TestCase
end
def test_patch_p0
- assert_patched formula { def patches; { :p0 => PATCH_URL_B }; end }
+ assert_patched formula {
+ def patches
+ { :p0 => PATCH_URL_B }
+ end
+ }
end
def test_patch_array
- assert_patched formula { def patches; [PATCH_URL_A]; end }
+ assert_patched formula {
+ def patches
+ [PATCH_URL_A]
+ end
+ }
end
def test_patch_hash
- assert_patched formula { def patches; { :p1 => PATCH_URL_A }; end }
+ assert_patched formula {
+ def patches
+ { :p1 => PATCH_URL_A }
+ end
+ }
end
def test_patch_hash_array
- assert_patched formula { def patches; { :p1 => [PATCH_URL_A] } end }
+ assert_patched formula {
+ def patches
+ { :p1 => [PATCH_URL_A] }
+ end
+ }
end
def test_patch_string