Switch base case expect() to allow().
This commit is contained in:
parent
7a108d3db0
commit
5e23a0563a
@ -345,7 +345,7 @@ describe Cask::Artifact::App, :cask do
|
|||||||
.with("/bin/cp", args: ["-pR", source_path.join("Contents"), target_path],
|
.with("/bin/cp", args: ["-pR", source_path.join("Contents"), target_path],
|
||||||
sudo: true)
|
sudo: true)
|
||||||
.and_call_original
|
.and_call_original
|
||||||
expect(command).to receive(:run!).with(any_args).and_call_original
|
allow(command).to receive(:run!).with(any_args).and_call_original
|
||||||
expect(FileUtils).not_to receive(:move).with(source_path.join("Contents"), contents_path)
|
expect(FileUtils).not_to receive(:move).with(source_path.join("Contents"), contents_path)
|
||||||
|
|
||||||
app.uninstall_phase(command: command, force: force, successor: cask)
|
app.uninstall_phase(command: command, force: force, successor: cask)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user