Resolve cask/artifact/pkg_spec violation

This commit is contained in:
Douglas Eichelberger 2023-01-22 17:04:12 -08:00
parent d4c550bae7
commit 357807fbac

View File

@ -35,7 +35,7 @@ describe Cask::Artifact::Pkg, :cask do
it "passes the choice changes xml to the system installer" do it "passes the choice changes xml to the system installer" do
pkg = cask.artifacts.find { |a| a.is_a?(described_class) } 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 expect(file).to receive(:write).with <<~XML
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>