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-17 19:05:49 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-05-17 19:05:49 +0300
commit43a25d93ebdabea52f99b05e15b06250cd8f07d7 (patch)
treedceebdc68925362117480a5d672bcff122fb625b /spec/services/preview_markdown_service_spec.rb
parent20c84b99005abd1c82101dfeff264ac50d2df211 (diff)
Add latest changes from gitlab-org/gitlab@16-0-stable-eev16.0.0-rc42
Diffstat (limited to 'spec/services/preview_markdown_service_spec.rb')
-rw-r--r--spec/services/preview_markdown_service_spec.rb12
1 files changed, 11 insertions, 1 deletions
diff --git a/spec/services/preview_markdown_service_spec.rb b/spec/services/preview_markdown_service_spec.rb
index d1bc10cfd28..6fa44310ae5 100644
--- a/spec/services/preview_markdown_service_spec.rb
+++ b/spec/services/preview_markdown_service_spec.rb
@@ -2,7 +2,7 @@
require 'spec_helper'
-RSpec.describe PreviewMarkdownService do
+RSpec.describe PreviewMarkdownService, feature_category: :team_planning do
let(:user) { create(:user) }
let(:project) { create(:project, :repository) }
@@ -117,6 +117,16 @@ RSpec.describe PreviewMarkdownService do
expect(result[:text]).to eq 'Please do it'
end
+ context 'when render_quick_actions' do
+ it 'keeps quick actions' do
+ params[:render_quick_actions] = true
+
+ result = service.execute
+
+ expect(result[:text]).to eq "Please do it\n\n/assign #{user.to_reference}"
+ end
+ end
+
it 'explains quick actions effect' do
result = service.execute