diff options
Diffstat (limited to 'spec/unit/node_spec.rb')
-rw-r--r-- | spec/unit/node_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/node_spec.rb b/spec/unit/node_spec.rb index ff912ee7a6..4c056ca349 100644 --- a/spec/unit/node_spec.rb +++ b/spec/unit/node_spec.rb @@ -53,7 +53,7 @@ describe Chef::Node do describe "when the node does not exist on the server" do before do response = OpenStruct.new(code: "404") - exception = Net::HTTPServerException.new("404 not found", response) + exception = Net::HTTPClientException.new("404 not found", response) allow(Chef::Node).to receive(:load).and_raise(exception) node.name("created-node") end @@ -1447,7 +1447,7 @@ describe Chef::Node do node.name("monkey") allow(node).to receive(:data_for_save).and_return({}) exception = double("404 error", code: "404") - expect(@rest).to receive(:put).and_raise(Net::HTTPServerException.new("foo", exception)) + expect(@rest).to receive(:put).and_raise(Net::HTTPClientException.new("foo", exception)) expect(@rest).to receive(:post).with("nodes", {}) node.save end |