diff options
author | Jay Mundrawala <jdmundrawala@gmail.com> | 2015-11-10 12:52:54 -0800 |
---|---|---|
committer | Jay Mundrawala <jdmundrawala@gmail.com> | 2015-11-10 12:52:54 -0800 |
commit | 9473a29cf815d8984e4bb2681fa4dc351beccf40 (patch) | |
tree | f8c09adacd440ea484e1d6fb44c90149e17badb1 | |
parent | 1ad9b956596b53f363225b6d604d9d19384d6c01 (diff) | |
download | mixlib-authentication-9473a29cf815d8984e4bb2681fa4dc351beccf40.tar.gz |
Fix raise_error warnings
-rw-r--r-- | spec/mixlib/authentication/mixlib_authentication_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/mixlib/authentication/mixlib_authentication_spec.rb b/spec/mixlib/authentication/mixlib_authentication_spec.rb index 13f039a..715e56c 100644 --- a/spec/mixlib/authentication/mixlib_authentication_spec.rb +++ b/spec/mixlib/authentication/mixlib_authentication_spec.rb @@ -109,15 +109,15 @@ describe "Mixlib::Authentication::SignedHeaderAuth" do end it "should choke when signing a request for a long user id with version 1.0" do - expect { LONG_SIGNING_OBJECT.sign(PRIVATE_KEY, 'sha1', '1.0') }.to raise_error + expect { LONG_SIGNING_OBJECT.sign(PRIVATE_KEY, 'sha1', '1.0') }.to raise_error(OpenSSL::PKey::RSAError) end it "should choke when signing a request with a bad version" do - expect { V1_1_SIGNING_OBJECT.sign(PRIVATE_KEY, 'sha1', 'poo') }.to raise_error + expect { V1_1_SIGNING_OBJECT.sign(PRIVATE_KEY, 'sha1', 'poo') }.to raise_error(Mixlib::Authentication::AuthenticationError) end it "should choke when signing a request with a bad algorithm" do - expect { V1_1_SIGNING_OBJECT.sign(PRIVATE_KEY, 'sha_poo', '1.1') }.to raise_error + expect { V1_1_SIGNING_OBJECT.sign(PRIVATE_KEY, 'sha_poo', '1.1') }.to raise_error(Mixlib::Authentication::AuthenticationError) end end |