summaryrefslogtreecommitdiff
path: root/test/functional
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2015-08-07 20:17:10 -0700
committerelijah <elijah@riseup.net>2015-08-07 20:17:10 -0700
commit883b2eadb7b28756978c4009cb9f92e7177a9dba (patch)
tree5b4fa18a28c0534ca8a9f9b337a86d40f0e9eb31 /test/functional
parent1493e0ca5e32bf25d9778e7326ea70d5ebfe74e6 (diff)
do not include random cruft in the common name of smtp client certificates
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/v1/smtp_certs_controller_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/v1/smtp_certs_controller_test.rb b/test/functional/v1/smtp_certs_controller_test.rb
index 3427e2d..ba70410 100644
--- a/test/functional/v1/smtp_certs_controller_test.rb
+++ b/test/functional/v1/smtp_certs_controller_test.rb
@@ -26,11 +26,11 @@ class V1::SmtpCertsControllerTest < ActionController::TestCase
protected
- def expect_cert(prefix)
- cert = stub to_s: "#{prefix.downcase} cert",
+ def expect_cert(email)
+ cert = stub to_s: "#{email.downcase} cert",
expiry: 1.month.from_now.utc.at_midnight
ClientCertificate.expects(:new).
- with(:prefix => prefix).
+ with(:common_name => email).
returns(cert)
return cert
end