From 357807fbac21a6f20da05d666bde4ff9f1c4bbe7 Mon Sep 17 00:00:00 2001 From: Douglas Eichelberger Date: Sun, 22 Jan 2023 17:04:12 -0800 Subject: [PATCH] Resolve cask/artifact/pkg_spec violation --- Library/Homebrew/test/cask/artifact/pkg_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/test/cask/artifact/pkg_spec.rb b/Library/Homebrew/test/cask/artifact/pkg_spec.rb index 85234faf67..9e41b7fa7d 100644 --- a/Library/Homebrew/test/cask/artifact/pkg_spec.rb +++ b/Library/Homebrew/test/cask/artifact/pkg_spec.rb @@ -35,7 +35,7 @@ describe Cask::Artifact::Pkg, :cask do it "passes the choice changes xml to the system installer" do pkg = cask.artifacts.find { |a| a.is_a?(described_class) } - file = double(path: Pathname.new("/tmp/choices.xml")) + file = instance_double(Tempfile, path: Pathname.new("/tmp/choices.xml")) expect(file).to receive(:write).with <<~XML