summaryrefslogtreecommitdiff
path: root/test/functional
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2014-07-09 22:53:05 +0200
committerAzul <azul@leap.se>2014-07-12 09:14:23 +0200
commitbdd5060ccc13951524c171e2d3b81eeddec1625d (patch)
treebc07fcec83529a43c95cd1c54f0c4f43c77e51dd /test/functional
parentcc1666d9832415058bf0b22bb5912e432261af4f (diff)
fix tests and simplify time calculations
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/v1/smtp_certs_controller_test.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/functional/v1/smtp_certs_controller_test.rb b/test/functional/v1/smtp_certs_controller_test.rb
index 9281ae6..3427e2d 100644
--- a/test/functional/v1/smtp_certs_controller_test.rb
+++ b/test/functional/v1/smtp_certs_controller_test.rb
@@ -27,7 +27,8 @@ class V1::SmtpCertsControllerTest < ActionController::TestCase
protected
def expect_cert(prefix)
- cert = stub :to_s => "#{prefix.downcase} cert"
+ cert = stub to_s: "#{prefix.downcase} cert",
+ expiry: 1.month.from_now.utc.at_midnight
ClientCertificate.expects(:new).
with(:prefix => prefix).
returns(cert)