diff options
author | Jay Mundrawala <jdmundrawala@gmail.com> | 2015-11-10 12:40:26 -0800 |
---|---|---|
committer | Jay Mundrawala <jdmundrawala@gmail.com> | 2015-11-10 12:41:19 -0800 |
commit | 93d555012c0ac0e53ec672fda610a114953c37ce (patch) | |
tree | 899c86145b87f76d3f711535cd836b389424bc6d /spec | |
parent | e0f434d9b42263ac0bf69a9291b0ad3af7ef663c (diff) | |
download | mixlib-authentication-93d555012c0ac0e53ec672fda610a114953c37ce.tar.gz |
Get tests to run
Diffstat (limited to 'spec')
-rw-r--r-- | spec/mixlib/authentication/mixlib_authentication_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/mixlib/authentication/mixlib_authentication_spec.rb b/spec/mixlib/authentication/mixlib_authentication_spec.rb index c16ab44..cd1a524 100644 --- a/spec/mixlib/authentication/mixlib_authentication_spec.rb +++ b/spec/mixlib/authentication/mixlib_authentication_spec.rb @@ -176,7 +176,8 @@ describe "Mixlib::Authentication::SignatureVerification" do headers.delete("HTTP_X_OPS_SIGN") mock_request = MockRequest.new(PATH, MERB_REQUEST_PARAMS, headers, BODY) - Time.stub!(:now).and_return(TIMESTAMP_OBJ) + allow(Time).to receive(:now).and_return(TIMESTAMP_OBJ) + #Time.stub!(:now).and_return(TIMESTAMP_OBJ) auth_req = Mixlib::Authentication::SignatureVerification.new lambda {auth_req.authenticate_user_request(mock_request, @user_private_key)}.should raise_error(Mixlib::Authentication::AuthenticationError) |