aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_patching.rb
diff options
context:
space:
mode:
authorAndrea Kao2016-08-05 22:04:59 -0700
committerMartin Afanasjew2016-08-06 07:04:59 +0200
commit8ec59253df47b9e597bc6a5ad488c42e035c0351 (patch)
tree0dc4c88f1e17be8efe8ff3c7329ecc3d3aacdee3 /Library/Homebrew/test/test_patching.rb
parentd59f0f77a7513f85bb8f27dd81f2ee08a2ad7605 (diff)
downloadbrew-8ec59253df47b9e597bc6a5ad488c42e035c0351.tar.bz2
tests: fix code style issues (#587)
Diffstat (limited to 'Library/Homebrew/test/test_patching.rb')
-rw-r--r--Library/Homebrew/test/test_patching.rb18
1 files changed, 9 insertions, 9 deletions
diff --git a/Library/Homebrew/test/test_patching.rb b/Library/Homebrew/test/test_patching.rb
index a87741807..8511981e1 100644
--- a/Library/Homebrew/test/test_patching.rb
+++ b/Library/Homebrew/test/test_patching.rb
@@ -2,15 +2,15 @@ require "testing_env"
require "formula"
class PatchingTests < Homebrew::TestCase
- TESTBALL_URL = "file://#{TEST_DIRECTORY}/tarballs/testball-0.1.tbz"
- TESTBALL_PATCHES_URL = "file://#{TEST_DIRECTORY}/tarballs/testball-0.1-patches.tgz"
- PATCH_URL_A = "file://#{TEST_DIRECTORY}/patches/noop-a.diff"
- PATCH_URL_B = "file://#{TEST_DIRECTORY}/patches/noop-b.diff"
+ TESTBALL_URL = "file://#{TEST_DIRECTORY}/tarballs/testball-0.1.tbz".freeze
+ TESTBALL_PATCHES_URL = "file://#{TEST_DIRECTORY}/tarballs/testball-0.1-patches.tgz".freeze
+ PATCH_URL_A = "file://#{TEST_DIRECTORY}/patches/noop-a.diff".freeze
+ PATCH_URL_B = "file://#{TEST_DIRECTORY}/patches/noop-b.diff".freeze
PATCH_A_CONTENTS = File.read "#{TEST_DIRECTORY}/patches/noop-a.diff"
PATCH_B_CONTENTS = File.read "#{TEST_DIRECTORY}/patches/noop-b.diff"
- APPLY_A = "noop-a.diff"
- APPLY_B = "noop-b.diff"
- APPLY_C = "noop-c.diff"
+ APPLY_A = "noop-a.diff".freeze
+ APPLY_B = "noop-b.diff".freeze
+ APPLY_C = "noop-c.diff".freeze
def formula(*args, &block)
super do
@@ -157,7 +157,7 @@ class PatchingTests < Homebrew::TestCase
sha256 TESTBALL_PATCHES_SHA256
apply APPLY_B
end
- }
+ }
end
def test_patch_p0
@@ -200,7 +200,7 @@ class PatchingTests < Homebrew::TestCase
assert_patched formula { patch :p0, PATCH_B_CONTENTS }
end
- def test_patch_DATA_constant
+ def test_patch_data_constant
assert_patched formula("test", Pathname.new(__FILE__).expand_path) {
def patches
:DATA