summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2015-05-01 11:19:23 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2015-05-04 10:57:10 -0700
commit228d3b1b98d29d07060050313e5485cffe5d19d8 (patch)
tree4bb3df6e3faee47e5fdc6770c69fa6b55d786763
parentc54c28cbc613bd2a13d000af720c2859dc898a49 (diff)
downloadchef-228d3b1b98d29d07060050313e5485cffe5d19d8.tar.gz
fix unit test stub
-rw-r--r--spec/unit/client_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/client_spec.rb b/spec/unit/client_spec.rb
index affbd0544d..4cfac35cb4 100644
--- a/spec/unit/client_spec.rb
+++ b/spec/unit/client_spec.rb
@@ -279,7 +279,7 @@ describe Chef::Client do
allow(node).to receive(:data_for_save).and_return(node.for_json)
# --Client#save_updated_node
- expect(Chef::REST).to receive(:new).with(Chef::Config[:chef_server_url]).and_return(http_node_save)
+ expect(Chef::REST).to receive(:new).with(Chef::Config[:chef_server_url], fqdn, Chef::Config[:client_key], validate_utf8: false).and_return(http_node_save)
expect(http_node_save).to receive(:put_rest).with("nodes/#{fqdn}", node.for_json).and_return(true)
end