Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/mailers/emails/in_product_marketing_spec.rb')
-rw-r--r--spec/mailers/emails/in_product_marketing_spec.rb69
1 files changed, 0 insertions, 69 deletions
diff --git a/spec/mailers/emails/in_product_marketing_spec.rb b/spec/mailers/emails/in_product_marketing_spec.rb
index 2d332dd99d6..93a06bfc881 100644
--- a/spec/mailers/emails/in_product_marketing_spec.rb
+++ b/spec/mailers/emails/in_product_marketing_spec.rb
@@ -25,75 +25,6 @@ RSpec.describe Emails::InProductMarketing do
end
end
- describe '#in_product_marketing_email' do
- let_it_be(:group) { create(:group) }
-
- let!(:onboarding_progress) { create(:onboarding_progress, namespace: group) }
-
- using RSpec::Parameterized::TableSyntax
-
- let(:track) { :create }
- let(:series) { 0 }
-
- subject { Notify.in_product_marketing_email(user.id, group.id, track, series) }
-
- include_context 'gitlab email notification'
-
- it_behaves_like 'has custom headers when on gitlab.com'
-
- it 'sends to the right user with a link to unsubscribe' do
- aggregate_failures do
- expect(subject).to deliver_to(user.notification_email_or_default)
- expect(subject).to have_body_text(profile_notifications_url)
- end
- end
-
- where(:track, :series) do
- :create | 0
- :create | 1
- :create | 2
- :verify | 0
- :verify | 1
- :verify | 2
- :trial | 0
- :trial | 1
- :trial | 2
- :team | 0
- :team | 1
- :team | 2
- :team_short | 0
- :trial_short | 0
- :admin_verify | 0
- end
-
- with_them do
- before do
- group.add_owner(user)
- end
-
- it 'has the correct subject and content' do
- message = Gitlab::Email::Message::InProductMarketing.for(track).new(group: group, user: user, series: series)
-
- 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.subtitle)
- is_expected.to have_body_text(CGI.unescapeHTML(message.cta_link))
-
- if /create|verify/.match?(track)
- is_expected.to have_body_text(message.invite_text)
- is_expected.to have_body_text(CGI.unescapeHTML(message.invite_link))
- else
- is_expected.not_to have_body_text(message.invite_text)
- is_expected.not_to have_body_text(CGI.unescapeHTML(message.invite_link))
- end
-
- is_expected.to have_body_text(message.progress)
- end
- end
- end
- end
-
describe '#build_ios_app_guide_email' do
subject { Notify.build_ios_app_guide_email(user.notification_email_or_default) }