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:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-05-04 12:13:07 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-05-04 12:13:07 +0300
commit6cd4578a23ffe0fb94632f83a07a25d01f8d6821 (patch)
treed21e9881e4ceb8ae6f28451f0797acc59e7cd1e8 /spec/mailers
parentb6a194f6625042a09e083443c3326cc61aefc4c0 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/mailers')
-rw-r--r--spec/mailers/emails/service_desk_spec.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/spec/mailers/emails/service_desk_spec.rb b/spec/mailers/emails/service_desk_spec.rb
index 76036fcd0b3..521cbe469d9 100644
--- a/spec/mailers/emails/service_desk_spec.rb
+++ b/spec/mailers/emails/service_desk_spec.rb
@@ -13,7 +13,7 @@ RSpec.describe Emails::ServiceDesk, feature_category: :service_desk do
let_it_be(:user) { create(:user) }
let_it_be(:project) { create(:project) }
- let_it_be(:issue) { create(:issue, project: project) }
+ let_it_be(:issue) { create(:issue, project: project, description: 'Some **issue** description') }
let_it_be(:email) { 'someone@gitlab.com' }
let_it_be(:expected_unsubscribe_url) { unsubscribe_sent_notification_url('b7721fc7e8419911a8bea145236a0519') }
let_it_be(:credential) { create(:service_desk_custom_email_credential, project: project) }
@@ -171,6 +171,13 @@ RSpec.describe Emails::ServiceDesk, feature_category: :service_desk do
it_behaves_like 'handle template content', 'thank_you'
end
+
+ context 'when issue description placeholder is used' do
+ let(:template_content) { 'thank you, your new issue has been created. %{ISSUE_DESCRIPTION}' }
+ let(:expected_body) { "<p dir=\"auto\">thank you, your new issue has been created. </p>#{issue.description_html}" }
+
+ it_behaves_like 'handle template content', 'thank_you'
+ end
end
end