diff options
author | Noah Kantrowitz <noah@coderanger.net> | 2015-09-01 20:17:50 -0700 |
---|---|---|
committer | Noah Kantrowitz <noah@coderanger.net> | 2015-09-01 20:17:50 -0700 |
commit | 716a86dfd5a95cc07908616b66cd3e854052aa10 (patch) | |
tree | a8a4f18d169338c59e421a848e99cb2d9541db54 /spec | |
parent | ca0726ef3c7c89533d5bd4146fcb3f20e2a50b80 (diff) | |
download | chef-716a86dfd5a95cc07908616b66cd3e854052aa10.tar.gz |
Stub Net::SSH.configuration_for.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/functional/knife/ssh_spec.rb | 5 |
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 |