tests: fix patching test for no-compat mode
Closes Homebrew/homebrew#41977. Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
parent
60600c824c
commit
33befcf312
@ -941,7 +941,7 @@ class Formula
|
||||
end
|
||||
|
||||
def prepare_patches
|
||||
active_spec.add_legacy_patches(patches)
|
||||
active_spec.add_legacy_patches(patches) if respond_to?(:patches)
|
||||
|
||||
patchlist.grep(DATAPatch) { |p| p.path = path }
|
||||
|
||||
|
||||
@ -106,7 +106,7 @@ class PatchingTests < Homebrew::TestCase
|
||||
def test_patch_DATA_constant
|
||||
assert_patched formula("test", Pathname.new(__FILE__).expand_path) {
|
||||
def patches
|
||||
Formula::DATA
|
||||
:DATA
|
||||
end
|
||||
}
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user