test/cask/artifact/shared_examples/uninstall_zap: fix for Ruby 3.2+
This commit is contained in:
parent
bde9afa70e
commit
7452350919
@ -314,8 +314,8 @@ RSpec.shared_examples "#uninstall_phase or #zap_phase" do
|
|||||||
|
|
||||||
before do
|
before do
|
||||||
allow_any_instance_of(Cask::Artifact::AbstractUninstall).to receive(:trash_paths)
|
allow_any_instance_of(Cask::Artifact::AbstractUninstall).to receive(:trash_paths)
|
||||||
.and_wrap_original do |method, *args|
|
.and_wrap_original do |method, *args, **kwargs|
|
||||||
method.call(*args).tap do |trashed, _|
|
method.call(*args, **kwargs).tap do |trashed, _|
|
||||||
FileUtils.rm_r trashed
|
FileUtils.rm_r trashed
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user