diff options
author | Thom May <thom@chef.io> | 2016-01-18 15:14:54 +0000 |
---|---|---|
committer | Thom May <thom@chef.io> | 2016-01-18 15:14:54 +0000 |
commit | 832505aaa7e029ad76287c1d37c1ebc146869dd4 (patch) | |
tree | b254006a56d4eb042dbaa429804bfd791ae3ebbd /spec/unit/handler | |
parent | 0ef0ab07531ae78cb4052242037227b0fb5365dc (diff) | |
download | chef-832505aaa7e029ad76287c1d37c1ebc146869dd4.tar.gz |
ensure unit tests are correct
Diffstat (limited to 'spec/unit/handler')
-rw-r--r-- | spec/unit/handler/json_file_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/handler/json_file_spec.rb b/spec/unit/handler/json_file_spec.rb index 76098e2522..d66c3ef120 100644 --- a/spec/unit/handler/json_file_spec.rb +++ b/spec/unit/handler/json_file_spec.rb @@ -53,7 +53,7 @@ describe Chef::Handler::JsonFile do it "saves run status data to a file as JSON" do expect(@handler).to receive(:build_report_dir) @handler.run_report_unsafe(@run_status) - reported_data = Chef::JSONCompat.from_json(@file_mock.string) + reported_data = Chef::JSONCompat.parse(@file_mock.string) expect(reported_data["exception"]).to eq("Exception: Boy howdy!") expect(reported_data["start_time"]).to eq(@expected_time.to_s) expect(reported_data["end_time"]).to eq((@expected_time + 5).to_s) |