summaryrefslogtreecommitdiff
path: root/chef/spec/unit/rest_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'chef/spec/unit/rest_spec.rb')
-rw-r--r--chef/spec/unit/rest_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/chef/spec/unit/rest_spec.rb b/chef/spec/unit/rest_spec.rb
index a2a697181b..1a79ea8075 100644
--- a/chef/spec/unit/rest_spec.rb
+++ b/chef/spec/unit/rest_spec.rb
@@ -204,7 +204,7 @@ describe Chef::REST do
it "should inflate the body as to an object if JSON is returned" do
@http_response.add_field("content-type", "application/json")
- JSON.should_receive(:parse).with("ninja").and_return("ohai2u_success")
+ Chef::JSON.should_receive(:from_json).with("ninja").and_return("ohai2u_success")
@rest.run_request(:GET, @url, {}).should == "ohai2u_success"
end