summaryrefslogtreecommitdiff
path: root/spec/unit/knife
diff options
context:
space:
mode:
authorsawanoboly <sawanoboriyu@higanworks.com>2017-01-16 14:42:12 +0900
committersawanoboly <sawanoboriyu@higanworks.com>2017-01-16 15:25:07 +0900
commit24d230b09a68c8b6857d060b398e779a23ba80bc (patch)
tree351802d51df66529fb7aaa60fd3fce8d2d78492c /spec/unit/knife
parent4cdf66b25bb0b6670607bb0570f0ff82f5322b26 (diff)
downloadchef-24d230b09a68c8b6857d060b398e779a23ba80bc.tar.gz
pass true as 2nd args for Net::SSH.configuration_for by default.
Signed-off-by: SAWANOBORI Yukihiko <sawanoboriyu@higanworks.com>
Diffstat (limited to 'spec/unit/knife')
-rw-r--r--spec/unit/knife/ssh_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/knife/ssh_spec.rb b/spec/unit/knife/ssh_spec.rb
index 44a133d858..9263a0b8e5 100644
--- a/spec/unit/knife/ssh_spec.rb
+++ b/spec/unit/knife/ssh_spec.rb
@@ -190,7 +190,7 @@ describe Chef::Knife::Ssh do
before :each do
@knife.instance_variable_set(:@longest, 0)
ssh_config = { :timeout => 50, :user => "locutus", :port => 23 }
- allow(Net::SSH).to receive(:configuration_for).with("the.b.org").and_return(ssh_config)
+ allow(Net::SSH).to receive(:configuration_for).with("the.b.org", true).and_return(ssh_config)
end
it "uses the port from an ssh config file" do