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-01 11:19:23 -0700
commit3f4e9302aedd9ff69f1b6d23f0631ed60c566586 (patch)
tree474dd130215ccc6187a124841a0c284b98f629f7
parent13193ba01caeda0147686611ec0ab282a31441db (diff)
downloadchef-lcg/node-utf8-sanitize.tar.gz
fix unit test stublcg/node-utf8-sanitize
-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