diff options
Diffstat (limited to 'spec/support/helpers/stub_gitlab_calls.rb')
-rw-r--r-- | spec/support/helpers/stub_gitlab_calls.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/support/helpers/stub_gitlab_calls.rb b/spec/support/helpers/stub_gitlab_calls.rb index c02ffe07159..0c92502ba99 100644 --- a/spec/support/helpers/stub_gitlab_calls.rb +++ b/spec/support/helpers/stub_gitlab_calls.rb @@ -109,6 +109,14 @@ module StubGitlabCalls end end + def stub_commonmark_sourcepos_enabled + engine = Banzai::Filter::MarkdownFilter.render_engine(nil) + + allow_next_instance_of(engine) do |instance| + allow(instance).to receive(:sourcepos_disabled?).and_return(false) + end + end + private def stub_container_registry_tag_manifest_content |