summaryrefslogtreecommitdiff
path: root/chef/spec/functional/tiny_server_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'chef/spec/functional/tiny_server_spec.rb')
-rw-r--r--chef/spec/functional/tiny_server_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/chef/spec/functional/tiny_server_spec.rb b/chef/spec/functional/tiny_server_spec.rb
index 59a5f16501..370698f0c7 100644
--- a/chef/spec/functional/tiny_server_spec.rb
+++ b/chef/spec/functional/tiny_server_spec.rb
@@ -54,7 +54,7 @@ describe TinyServer::API do
response[0].should == 404
response[1].should == {'Content-Type' => 'application/json'}
response[2].should be_a_kind_of(String)
- response_obj = JSON.parse(response[2])
+ response_obj = Chef::JSON.from_json(response[2])
response_obj["message"].should == "no data matches the request for /no_such_thing"
response_obj["available_routes"].should == {"GET"=>[], "PUT"=>[], "POST"=>[], "DELETE"=>[]}
response_obj["request"].should == {"REQUEST_METHOD"=>"GET", "REQUEST_URI"=>"/no_such_thing"}