Resolve cask/artifact/pkg_spec violation
This commit is contained in:
parent
d4c550bae7
commit
357807fbac
@ -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
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user