diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-06 12:07:05 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-06 12:07:05 +0300 |
commit | 22856b87805d4e6fe92eee6e9ae3dcdebb75c3f3 (patch) | |
tree | 934d853850b990daa9f1d58b93fd548777f6fea3 /spec/mailers | |
parent | 67d7b691b1f51459548f6b35427841f381afbca6 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/mailers')
-rw-r--r-- | spec/mailers/notify_spec.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/mailers/notify_spec.rb b/spec/mailers/notify_spec.rb index 8ee88776107..3b1694527d3 100644 --- a/spec/mailers/notify_spec.rb +++ b/spec/mailers/notify_spec.rb @@ -1969,6 +1969,19 @@ RSpec.describe Notify do end end + describe 'in product marketing', :mailer do + let_it_be(:group) { create(:group) } + + let(:mail) { ActionMailer::Base.deliveries.last } + + it 'does not raise error' do + described_class.in_product_marketing_email(user.id, group.id, :trial, 0).deliver + + expect(mail.subject).to eq('Go farther with GitLab') + expect(mail.body.parts.first.to_s).to include('Start a GitLab Ultimate trial today in less than one minute, no credit card required.') + end + end + def expect_sender(user) sender = subject.header[:from].addrs[0] expect(sender.display_name).to eq("#{user.name} (@#{user.username})") |