diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-05 18:14:09 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-05 18:14:09 +0300 |
commit | d4e0452ed946ca0cf4dd0537675abeda7a4c0ffa (patch) | |
tree | 1f719aa86ade289adefa247ba93a8f0f90528608 /spec/support | |
parent | cd17aa65132de074aab9ae50ab7bbf7f16428546 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/helpers/stub_gitlab_calls.rb | 6 |
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 |