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-04-05 18:14:09 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-04-05 18:14:09 +0300
commitd4e0452ed946ca0cf4dd0537675abeda7a4c0ffa (patch)
tree1f719aa86ade289adefa247ba93a8f0f90528608 /spec/support
parentcd17aa65132de074aab9ae50ab7bbf7f16428546 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/helpers/stub_gitlab_calls.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/support/helpers/stub_gitlab_calls.rb b/spec/support/helpers/stub_gitlab_calls.rb
index e5c30769531..748ea525e40 100644
--- a/spec/support/helpers/stub_gitlab_calls.rb
+++ b/spec/support/helpers/stub_gitlab_calls.rb
@@ -94,10 +94,10 @@ module StubGitlabCalls
end
def stub_commonmark_sourcepos_disabled
- render_options = Banzai::Filter::MarkdownEngines::CommonMark::RENDER_OPTIONS
+ engine = Banzai::Filter::MarkdownFilter.render_engine(nil)
- allow_next_instance_of(Banzai::Filter::MarkdownEngines::CommonMark) do |instance|
- allow(instance).to receive(:render_options).and_return(render_options)
+ allow_next_instance_of(engine) do |instance|
+ allow(instance).to receive(:sourcepos_disabled?).and_return(true)
end
end