summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThom May <thom@chef.io>2015-12-07 18:10:32 +0000
committerThom May <thom@chef.io>2015-12-07 18:10:36 +0000
commit4b219e36ff89d940cfb2ecbec11144578f1852fc (patch)
tree9771e43550ce955bc7e3fc1d70eabbc0dfbaa995
parent5b0f23f56aeb4eec2c4bea29a3d4ff93caa4c11b (diff)
downloadchef-tm/fix_reg_tests.tar.gz
fix registration teststm/fix_reg_tests
-rw-r--r--spec/unit/api_client/registration_spec.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/unit/api_client/registration_spec.rb b/spec/unit/api_client/registration_spec.rb
index d6230afb6a..05d1793a4a 100644
--- a/spec/unit/api_client/registration_spec.rb
+++ b/spec/unit/api_client/registration_spec.rb
@@ -35,7 +35,7 @@ describe Chef::ApiClient::Registration do
File.open(Chef::Config[:validation_key], "r") {|f| f.read.chomp }
end
- let(:http_mock) { double("Chef::REST mock") }
+ let(:http_mock) { double("Chef::ServerAPI mock") }
let(:expected_post_data) do
{ :name => client_name, :admin => false, :public_key => generated_public_key.to_pem }
@@ -93,9 +93,7 @@ describe Chef::ApiClient::Registration do
end
it "has an HTTP client configured with validator credentials" do
- expect(registration.http_api).to be_a_kind_of(Chef::REST)
- expect(registration.http_api.client_name).to eq("test-validator")
- expect(registration.http_api.signing_key).to eq(private_key_data)
+ expect(registration.http_api).to be_a_kind_of(Chef::ServerAPI)
end
describe "when creating/updating the client on the server" do