diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-12-13 21:14:32 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-12-13 21:14:32 +0000 |
commit | f163fc8ce6d7661ccf0ff9aa4561f6e5a708b71b (patch) | |
tree | d2d1b57de3428ee1efaf7db74e651cd19543e75d /spec/mailers | |
parent | 999cc13e0a77fad7322fbbe559013565355c2bfb (diff) | |
download | gitlab-ce-f163fc8ce6d7661ccf0ff9aa4561f6e5a708b71b.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/mailers')
-rw-r--r-- | spec/mailers/emails/in_product_marketing_spec.rb | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/spec/mailers/emails/in_product_marketing_spec.rb b/spec/mailers/emails/in_product_marketing_spec.rb index f6f8c187e80..720e6f101a8 100644 --- a/spec/mailers/emails/in_product_marketing_spec.rb +++ b/spec/mailers/emails/in_product_marketing_spec.rb @@ -108,35 +108,4 @@ RSpec.describe Emails::InProductMarketing do end end end - - describe '#account_validation_email' do - let_it_be(:namespace) { create(:namespace) } - let_it_be(:project) { create(:project, :repository, namespace: namespace) } - let_it_be(:pipeline) { create(:ci_pipeline, project: project) } - - subject { Notify.account_validation_email(pipeline, user.notification_email_or_default) } - - it 'sends to the right user with a link to unsubscribe' do - expect(subject).to deliver_to(user.notification_email_or_default) - end - - it_behaves_like 'has custom headers when on gitlab.com' - - it 'has the correct subject and content' do - message = Gitlab::Email::Message::AccountValidation.new(pipeline) - cta_url = project_pipeline_url(pipeline.project, pipeline) - cta2_url = 'https://docs.gitlab.com/runner/install/' - - aggregate_failures do - is_expected.to have_subject(message.subject_line) - is_expected.to have_body_text(message.title) - is_expected.to have_body_text(message.body_line1) - is_expected.to have_body_text(CGI.unescapeHTML(message.body_line2)) - is_expected.to have_body_text(CGI.unescapeHTML(message.cta_link)) - is_expected.to have_body_text(CGI.unescapeHTML(message.cta2_link)) - is_expected.to have_body_text(cta_url) - is_expected.to have_body_text(cta2_url) - end - end - end end |