summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorJay Mundrawala <jdmundrawala@gmail.com>2015-11-10 12:40:26 -0800
committerJay Mundrawala <jdmundrawala@gmail.com>2015-11-10 12:41:19 -0800
commit93d555012c0ac0e53ec672fda610a114953c37ce (patch)
tree899c86145b87f76d3f711535cd836b389424bc6d /spec
parente0f434d9b42263ac0bf69a9291b0ad3af7ef663c (diff)
downloadmixlib-authentication-93d555012c0ac0e53ec672fda610a114953c37ce.tar.gz
Get tests to run
Diffstat (limited to 'spec')
-rw-r--r--spec/mixlib/authentication/mixlib_authentication_spec.rb3
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)