diff options
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 |