summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorNoah Kantrowitz <noah@coderanger.net>2015-09-01 20:17:50 -0700
committerNoah Kantrowitz <noah@coderanger.net>2015-09-01 20:17:50 -0700
commit716a86dfd5a95cc07908616b66cd3e854052aa10 (patch)
treea8a4f18d169338c59e421a848e99cb2d9541db54 /spec
parentca0726ef3c7c89533d5bd4146fcb3f20e2a50b80 (diff)
downloadchef-716a86dfd5a95cc07908616b66cd3e854052aa10.tar.gz
Stub Net::SSH.configuration_for.
Diffstat (limited to 'spec')
-rw-r--r--spec/functional/knife/ssh_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/functional/knife/ssh_spec.rb b/spec/functional/knife/ssh_spec.rb
index 6608d05771..1c56cce9c2 100644
--- a/spec/functional/knife/ssh_spec.rb
+++ b/spec/functional/knife/ssh_spec.rb
@@ -31,6 +31,11 @@ describe Chef::Knife::Ssh do
@server.stop
end
+ let(:ssh_config) { Hash.new }
+ before do
+ allow(Net::SSH).to receive(:configuration_for).and_return(ssh_config)
+ end
+
describe "identity file" do
context "when knife[:ssh_identity_file] is set" do
before do