summaryrefslogtreecommitdiff
path: root/chef/spec/unit/application/client_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'chef/spec/unit/application/client_spec.rb')
-rw-r--r--chef/spec/unit/application/client_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/chef/spec/unit/application/client_spec.rb b/chef/spec/unit/application/client_spec.rb
index e92b2458ef..d5daec07d4 100644
--- a/chef/spec/unit/application/client_spec.rb
+++ b/chef/spec/unit/application/client_spec.rb
@@ -99,7 +99,7 @@ describe Chef::Application::Client, "reconfigure" do
end
it "should parse the json out of the file" do
- JSON.should_receive(:parse).with(@json.read)
+ Chef::JSON.should_receive(:from_json).with(@json.read)
@app.reconfigure
end
end
@@ -109,7 +109,7 @@ describe Chef::Application::Client, "reconfigure" do
Chef::Config[:json_attribs] = "/etc/chef/dna.json"
@json = mock("Tempfile", :read => {:a=>"b"}.to_json, :null_object => true)
@app.stub!(:open).with("/etc/chef/dna.json").and_return(@json)
- JSON.stub!(:parse).with(@json.read).and_raise(JSON::ParserError)
+ Chef::JSON.stub!(:from_json).with(@json.read).and_raise(JSON::ParserError)
Chef::Application.stub!(:fatal!).and_return(true)
end