From 61733bbfbf336161e65e2a2ec695fe692e963345 Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Fri, 29 Nov 2013 00:26:42 -0200 Subject: [PATCH] core: Fix broken SSHExec spec --- test/unit/vagrant/action/builtin/ssh_exec_test.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/unit/vagrant/action/builtin/ssh_exec_test.rb b/test/unit/vagrant/action/builtin/ssh_exec_test.rb index f06686b8f..34d8a9d72 100644 --- a/test/unit/vagrant/action/builtin/ssh_exec_test.rb +++ b/test/unit/vagrant/action/builtin/ssh_exec_test.rb @@ -30,10 +30,11 @@ describe Vagrant::Action::Builtin::SSHExec do end 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). - with(Pathname.new(machine_ssh_info[:private_key_path])). + with(Pathname.new(key_path)). once. ordered