summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaire McQuin <claire@getchef.com>2014-05-12 13:40:12 -0700
committerClaire McQuin <claire@getchef.com>2014-05-15 14:04:19 -0700
commit2f51b28f0a0178826524efdc20b6f41048470890 (patch)
treee81abb52f2a4ea8d75c0a76e8099066a892776f7
parent68e33803973a51a461037426b8318320bcc57b34 (diff)
downloadchef-2f51b28f0a0178826524efdc20b6f41048470890.tar.gz
update stubs for new node.save behavior
-rw-r--r--spec/unit/client_spec.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/unit/client_spec.rb b/spec/unit/client_spec.rb
index 6aa98843c0..36a0e9fc1b 100644
--- a/spec/unit/client_spec.rb
+++ b/spec/unit/client_spec.rb
@@ -253,9 +253,11 @@ describe Chef::Client do
end
def stub_for_node_save
+ node.stub(:data_for_save).and_return(node.for_json)
+
# --Client#save_updated_node
Chef::REST.should_receive(:new).with(Chef::Config[:chef_server_url]).and_return(http_node_save)
- http_node_save.should_receive(:put_rest).with("nodes/#{fqdn}", node).and_return(true)
+ http_node_save.should_receive(:put_rest).with("nodes/#{fqdn}", node.for_json).and_return(true)
end
def stub_for_run
@@ -614,4 +616,3 @@ describe Chef::Client do
end
end
-