diff options
Diffstat (limited to 'spec/lib/gitlab/email/message/account_validation_spec.rb')
-rw-r--r-- | spec/lib/gitlab/email/message/account_validation_spec.rb | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/spec/lib/gitlab/email/message/account_validation_spec.rb b/spec/lib/gitlab/email/message/account_validation_spec.rb deleted file mode 100644 index 03d9414b914..00000000000 --- a/spec/lib/gitlab/email/message/account_validation_spec.rb +++ /dev/null @@ -1,26 +0,0 @@ -# frozen_string_literal: true - -require 'spec_helper' - -RSpec.describe Gitlab::Email::Message::AccountValidation 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(:message) { described_class.new(pipeline) } - - it 'contains the correct message', :aggregate_failures do - expect(message.subject_line).to eq 'Fix your pipelines by validating your account' - expect(message.title).to eq "Looks like you’ll need to validate your account to use free pipeline minutes" - expect(message.body_line1).to eq "In order to use free pipeline minutes on shared runners, you'll need to validate your account with a credit or debit card. If you prefer not to provide one, you can run pipelines by bringing your own runners and disabling shared runners for your project." - expect(message.body_line2).to include( - 'This is required to discourage and reduce the abuse on GitLab infrastructure.', - '<b>GitLab will not charge or store your card, it will only be used for validation.</b>', - '<a href="https://about.gitlab.com/blog/2021/05/17/prevent-crypto-mining-abuse/">Learn more.</a>' - ) - expect(message.cta_text).to eq 'Validate your account' - expect(message.cta2_text).to eq "I'll bring my own runners" - expect(message.logo_path).to eq 'mailers/in_product_marketing/verify-2.png' - expect(message.unsubscribe).to include('%tag_unsubscribe_url%') - end -end |