mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-06-09 00:32:06 -04:00
Add missing method to test double
This commit is contained in:
parent
df7c11a3a7
commit
e829902e0a
2 changed files with 2 additions and 0 deletions
|
|
@ -22,6 +22,7 @@ describe "VagrantPlugins::GuestWindows::Cap::InsertPublicKey" do
|
|||
allow(comm).to receive(:execute).with(/echo .+/, shell: "cmd").and_yield(:stdout, "TEMP\r\nHOME\r\n")
|
||||
allow(comm).to receive(:execute).with(/dir .+\.ssh/, shell: "cmd")
|
||||
allow(comm).to receive(:execute).with(/dir .+authorized_keys/, shell: "cmd", error_check: false).and_return(auth_keys_check_result)
|
||||
allow(comm).to receive(:create_remote_directory)
|
||||
end
|
||||
|
||||
after do
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ describe "VagrantPlugins::GuestWindows::Cap::RemovePublicKey" do
|
|||
allow(comm).to receive(:execute).with(/echo .+/, shell: "cmd").and_yield(:stdout, "TEMP\r\nHOME\r\n")
|
||||
allow(comm).to receive(:execute).with(/dir .+\.ssh/, shell: "cmd")
|
||||
allow(comm).to receive(:execute).with(/dir .+authorized_keys/, shell: "cmd", error_check: false).and_return(auth_keys_check_result)
|
||||
allow(comm).to receive(:create_remote_directory)
|
||||
end
|
||||
|
||||
after do
|
||||
|
|
|
|||
Loading…
Reference in a new issue