diff options
author | linyows <linyows@gmail.com> | 2018-01-25 10:33:25 +0900 |
---|---|---|
committer | linyows <linyows@gmail.com> | 2018-01-25 10:33:25 +0900 |
commit | a4a50d5937efc3f06cc9d5f4a0c302d6fc84e2ef (patch) | |
tree | 81a441a992904d89f6c10190f17fc44b1eb44135 /spec | |
parent | db797fac6999dbb0b4da0bbfeab88a297e29c2c0 (diff) | |
download | chef-a4a50d5937efc3f06cc9d5f4a0c302d6fc84e2ef.tar.gz |
to warning instead of fatal error
Signed-off-by: linyows <linyows@gmail.com>
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/knife/ssh_spec.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/unit/knife/ssh_spec.rb b/spec/unit/knife/ssh_spec.rb index ecfca88924..c0ef9e4116 100644 --- a/spec/unit/knife/ssh_spec.rb +++ b/spec/unit/knife/ssh_spec.rb @@ -144,9 +144,8 @@ describe Chef::Knife::Ssh do @node_bar["fqdn"] = "foo.example.org" end - it "should raise a specific error" do - expect(@knife.ui).to receive(:fatal).with(/^SSH node is duplicated: foo\.example\.org/) - expect(@knife).to receive(:exit).with(10) + it "should be warned" do + expect(@knife.ui).to receive(:warn).with(/^SSH node is duplicated: foo\.example\.org/) expect(@knife).to receive(:session_from_list).with([ ["foo.example.org", nil, nil], ["foo.example.org", nil, nil], |