1
Description: Fix for HTTP authentication test
2
This fix is supplied by upstream to repair an issue with a HTTP
3
authentication spec file.
5
The fix will be included in an upcoming upstream releases for which the
6
date has not been set yet.
8
Author: Chris Walters <github.algorist@ckwalters.com>
9
Origin: upstream, https://github.com/opscode/mixlib-authentication/commit/fe5cd0116d13982557fdc92355e493e3849a5e0e
11
--- a/spec/mixlib/authentication/http_authentication_request_spec.rb
12
+++ b/spec/mixlib/authentication/http_authentication_request_spec.rb
14
it "raises an error when not all required headers are given" do
15
@merb_headers.delete("HTTP_X_OPS_SIGN")
16
exception = Mixlib::Authentication::MissingAuthenticationHeader
17
- auth_req = Mixlib::Authentication::HTTPAuthenticationRequest.new(@request)
18
- lambda {auth_req.validate_headers!}.should raise_error(exception)
19
+ lambda{ Mixlib::Authentication::HTTPAuthenticationRequest.new(@request) }.should raise_error(exception)
22
it "extracts the path from the request" do