mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Resolve cask/pkg_spec violation
This commit is contained in:
parent
585098a9b9
commit
a83623e4cf
@ -4,7 +4,13 @@
|
||||
describe Cask::Pkg, :cask do
|
||||
describe "#uninstall" do
|
||||
let(:fake_system_command) { NeverSudoSystemCommand }
|
||||
let(:empty_response) { double(stdout: "", plist: { "volume" => "/", "install-location" => "", "paths" => {} }) }
|
||||
let(:empty_response) do
|
||||
instance_double(
|
||||
SystemCommand::Result,
|
||||
stdout: "",
|
||||
plist: { "volume" => "/", "install-location" => "", "paths" => {} },
|
||||
)
|
||||
end
|
||||
let(:pkg) { described_class.new("my.fake.pkg", fake_system_command) }
|
||||
|
||||
it "removes files and dirs referenced by the pkg" do
|
||||
|
Loading…
x
Reference in New Issue
Block a user