summaryrefslogtreecommitdiff
path: root/spec/mailers
diff options
context:
space:
mode:
authorVinnie Okada <vokada@mrvinn.com>2015-04-26 22:04:33 -0600
committerVinnie Okada <vokada@mrvinn.com>2015-05-16 14:03:07 -0600
commit0bfab084a811d7dad1f1929ee7b5c2bc59015173 (patch)
treeda3c6e696e22b3d9e377f956c1adbec4380a3e97 /spec/mailers
parent35729671fb3a123ddeb7b2b1cda446fd661bd4e6 (diff)
downloadgitlab-ce-0bfab084a811d7dad1f1929ee7b5c2bc59015173.tar.gz
Explain reset token expiration in emails
Tell new users when their password reset token expires and provide a link to get a new one.
Diffstat (limited to 'spec/mailers')
-rw-r--r--spec/mailers/notify_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/mailers/notify_spec.rb b/spec/mailers/notify_spec.rb
index dbcf7286e45..4da91eea98c 100644
--- a/spec/mailers/notify_spec.rb
+++ b/spec/mailers/notify_spec.rb
@@ -91,6 +91,11 @@ describe Notify do
it 'includes a link to the site' do
is_expected.to have_body_text /#{example_site_path}/
end
+
+ it 'explains the reset link expiration' do
+ is_expected.to have_body_text(/This link is valid for \d+ (hours?|days?)/)
+ is_expected.to have_body_text(new_user_password_url)
+ end
end