diff options
Diffstat (limited to 'spec/mailers/emails/profile_spec.rb')
-rw-r--r-- | spec/mailers/emails/profile_spec.rb | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/spec/mailers/emails/profile_spec.rb b/spec/mailers/emails/profile_spec.rb index 4816e88a311..7ddb4810d53 100644 --- a/spec/mailers/emails/profile_spec.rb +++ b/spec/mailers/emails/profile_spec.rb @@ -199,6 +199,10 @@ RSpec.describe Emails::Profile, feature_category: :user_profile do it_behaves_like 'it should not have Gmail Actions links' it_behaves_like 'a user cannot unsubscribe through footer link' it_behaves_like 'resource about to expire email' + + it 'includes the email reason' do + is_expected.to have_body_text _('You are receiving this email because you are an Owner of the Group.') + end end context 'when access token belongs to a project' do @@ -218,6 +222,10 @@ RSpec.describe Emails::Profile, feature_category: :user_profile do it_behaves_like 'it should not have Gmail Actions links' it_behaves_like 'a user cannot unsubscribe through footer link' it_behaves_like 'resource about to expire email' + + it 'includes the email reason' do + is_expected.to have_body_text _('You are receiving this email because you are a Maintainer of the Project.') + end end end @@ -289,7 +297,7 @@ RSpec.describe Emails::Profile, feature_category: :user_profile do end it 'has the correct subject' do - is_expected.to have_subject /^A personal access token has been revoked$/i + is_expected.to have_subject /^Your personal access token has been revoked$/i end it 'provides the names of the token' do @@ -317,7 +325,7 @@ RSpec.describe Emails::Profile, feature_category: :user_profile do end it 'has the correct subject' do - is_expected.to have_subject /^A personal access token has been revoked$/i + is_expected.to have_subject /^Your personal access token has been revoked$/i end it 'provides the names of the token' do |