Skip to content

Commit

Permalink
test/cask/artifact/shared_examples/uninstall_zap: fix for Ruby 3.2+
Browse files Browse the repository at this point in the history
  • Loading branch information
Bo98 committed May 17, 2024
1 parent bde9afa commit 7452350
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,8 @@

before do
allow_any_instance_of(Cask::Artifact::AbstractUninstall).to receive(:trash_paths)
.and_wrap_original do |method, *args|
method.call(*args).tap do |trashed, _|
.and_wrap_original do |method, *args, **kwargs|
method.call(*args, **kwargs).tap do |trashed, _|
FileUtils.rm_r trashed
end
end
Expand Down

0 comments on commit 7452350

Please sign in to comment.