diff options
author | Thom May <thom@may.lt> | 2015-12-07 18:19:22 +0000 |
---|---|---|
committer | Thom May <thom@may.lt> | 2015-12-07 18:19:22 +0000 |
commit | fd0ae035aecb0b31ca74a89ffb44a965e8ff4e1b (patch) | |
tree | 9fb1f1628943742901594098af2680a004ff0cee | |
parent | dae24eeaf0c03b5ae2009ec38306a4e63e8ba1be (diff) | |
parent | 4b219e36ff89d940cfb2ecbec11144578f1852fc (diff) | |
download | chef-fd0ae035aecb0b31ca74a89ffb44a965e8ff4e1b.tar.gz |
Merge pull request #4247 from chef/tm/fix_reg_tests
fix registration tests
-rw-r--r-- | spec/unit/api_client/registration_spec.rb | 6 |
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 |