summaryrefslogtreecommitdiff
path: root/spec/unit/api_client_spec.rb
diff options
context:
space:
mode:
authorThom May <thom@chef.io>2016-01-18 15:14:54 +0000
committerThom May <thom@chef.io>2016-01-18 15:14:54 +0000
commit832505aaa7e029ad76287c1d37c1ebc146869dd4 (patch)
treeb254006a56d4eb042dbaa429804bfd791ae3ebbd /spec/unit/api_client_spec.rb
parent0ef0ab07531ae78cb4052242037227b0fb5365dc (diff)
downloadchef-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.rb2
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