core: Fix broken SSHExec spec
This commit is contained in:
parent
9753f988b0
commit
61733bbfbf
|
@ -30,10 +30,11 @@ describe Vagrant::Action::Builtin::SSHExec do
|
||||||
end
|
end
|
||||||
|
|
||||||
it "should check key permissions then exec" do
|
it "should check key permissions then exec" do
|
||||||
machine_ssh_info[:private_key_path] = "/foo"
|
key_path = "/foo"
|
||||||
|
machine_ssh_info[:private_key_path] = [key_path]
|
||||||
|
|
||||||
ssh_klass.should_receive(:check_key_permissions).
|
ssh_klass.should_receive(:check_key_permissions).
|
||||||
with(Pathname.new(machine_ssh_info[:private_key_path])).
|
with(Pathname.new(key_path)).
|
||||||
once.
|
once.
|
||||||
ordered
|
ordered
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue