summaryrefslogtreecommitdiff
path: root/spec/mixlib
diff options
context:
space:
mode:
authorChris Walters <cw@opscode.com>2010-10-08 11:53:36 -0700
committerChris Walters <cw@opscode.com>2010-10-08 11:53:36 -0700
commitfe5cd0116d13982557fdc92355e493e3849a5e0e (patch)
tree362a7b62280757494cb1bb122d6b9b224c15c301 /spec/mixlib
parent1e8166c156932d6916df9a04a6e151446cfc7ee3 (diff)
downloadmixlib-authentication-fe5cd0116d13982557fdc92355e493e3849a5e0e.tar.gz
Fixing spec tests
Diffstat (limited to 'spec/mixlib')
-rw-r--r--spec/mixlib/authentication/http_authentication_request_spec.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/mixlib/authentication/http_authentication_request_spec.rb b/spec/mixlib/authentication/http_authentication_request_spec.rb
index 563f8cc..8305de5 100644
--- a/spec/mixlib/authentication/http_authentication_request_spec.rb
+++ b/spec/mixlib/authentication/http_authentication_request_spec.rb
@@ -82,8 +82,7 @@ describe Mixlib::Authentication::HTTPAuthenticationRequest do
it "raises an error when not all required headers are given" do
@merb_headers.delete("HTTP_X_OPS_SIGN")
exception = Mixlib::Authentication::MissingAuthenticationHeader
- auth_req = Mixlib::Authentication::HTTPAuthenticationRequest.new(@request)
- lambda {auth_req.validate_headers!}.should raise_error(exception)
+ lambda{ Mixlib::Authentication::HTTPAuthenticationRequest.new(@request) }.should raise_error(exception)
end
it "extracts the path from the request" do
@@ -126,4 +125,4 @@ SIG
@http_authentication_request.request_signature.should == expected.chomp
end
-end \ No newline at end of file
+end