diff options
author | Jay Mundrawala <jdmundrawala@gmail.com> | 2015-12-15 13:17:04 -0600 |
---|---|---|
committer | Jay Mundrawala <jdmundrawala@gmail.com> | 2016-01-25 09:51:06 -0800 |
commit | d999373538ad9861ad8176d2ecd1ead02d487814 (patch) | |
tree | 5b22de7e3eecddf1bfba2402e6d0cf1b62189f98 /spec/unit | |
parent | 395324bab4a687f8e65789c77c1222beba89a586 (diff) | |
download | chef-d999373538ad9861ad8176d2ecd1ead02d487814.tar.gz |
Pass headers to mixlib-authentication
Diffstat (limited to 'spec/unit')
-rw-r--r-- | spec/unit/http/authenticator_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/unit/http/authenticator_spec.rb b/spec/unit/http/authenticator_spec.rb index 1289ebb61e..031a483fe9 100644 --- a/spec/unit/http/authenticator_spec.rb +++ b/spec/unit/http/authenticator_spec.rb @@ -70,7 +70,9 @@ describe Chef::HTTP::Authenticator do it_behaves_like "merging the server API version into the headers" it "calls authentication_headers with the proper input" do - expect(class_instance).to receive(:authentication_headers).with(method, url, data).and_return({}) + expect(class_instance).to receive(:authentication_headers).with( + method, url, data, + {"X-Ops-Server-API-Version" => Chef::HTTP::Authenticator::DEFAULT_SERVER_API_VERSION}).and_return({}) class_instance.handle_request(method, url, headers, data) end end |