diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-06 15:10:20 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-06 15:10:20 +0300 |
commit | 9ad806210531e19c851a69cbcdaf9ed8bd6cb478 (patch) | |
tree | 348438fb6eb4219841571786b0826736d1d3e016 /spec/mailers | |
parent | 4903f95b04db58edc1931ec917d2313c916a06b2 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/mailers')
-rw-r--r-- | spec/mailers/emails/profile_spec.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/mailers/emails/profile_spec.rb b/spec/mailers/emails/profile_spec.rb index 32df477fdfc..c796801fdf9 100644 --- a/spec/mailers/emails/profile_spec.rb +++ b/spec/mailers/emails/profile_spec.rb @@ -429,11 +429,16 @@ RSpec.describe Emails::Profile do is_expected.to have_subject "#{Gitlab.config.gitlab.host} sign-in from new location" end + it 'mentions the username' do + is_expected.to have_body_text user.name + is_expected.to have_body_text user.username + end + it 'mentions the new sign-in IP' do is_expected.to have_body_text ip end - it 'mentioned the time' do + it 'mentions the time' do is_expected.to have_body_text current_time.strftime('%Y-%m-%d %H:%M:%S %Z') end |