diff options
author | Vinnie Okada <vokada@mrvinn.com> | 2015-04-27 07:04:33 +0300 |
---|---|---|
committer | Vinnie Okada <vokada@mrvinn.com> | 2015-05-16 23:03:07 +0300 |
commit | 0bfab084a811d7dad1f1929ee7b5c2bc59015173 (patch) | |
tree | da3c6e696e22b3d9e377f956c1adbec4380a3e97 /spec/mailers | |
parent | 35729671fb3a123ddeb7b2b1cda446fd661bd4e6 (diff) |
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.rb | 5 |
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 |