core: Fix broken SSHExec spec

This commit is contained in:
Fabio Rehm 2013-11-29 00:26:42 -02:00
parent 9753f988b0
commit 61733bbfbf
1 changed files with 3 additions and 2 deletions

View File

@ -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