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/api_client_spec.rb | |
parent | 0ef0ab07531ae78cb4052242037227b0fb5365dc (diff) | |
download | chef-832505aaa7e029ad76287c1d37c1ebc146869dd4.tar.gz |
ensure unit tests are correct
Diffstat (limited to 'spec/unit/api_client_spec.rb')
-rw-r--r-- | spec/unit/api_client_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/api_client_spec.rb b/spec/unit/api_client_spec.rb index 1f313d7447..0451541f14 100644 --- a/spec/unit/api_client_spec.rb +++ b/spec/unit/api_client_spec.rb @@ -181,7 +181,7 @@ describe Chef::ApiClient do end let(:client) do - Chef::JSONCompat.from_json(Chef::JSONCompat.to_json(client_hash)) + Chef::ApiClient.from_hash(Chef::JSONCompat.parse(Chef::JSONCompat.to_json(client_hash))) end it "should deserialize to a Chef::ApiClient object" do |