diff options
Diffstat (limited to 'spec/features/markdown/markdown_spec.rb')
-rw-r--r-- | spec/features/markdown/markdown_spec.rb | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/spec/features/markdown/markdown_spec.rb b/spec/features/markdown/markdown_spec.rb index 151ef76e884..8e28f89f49e 100644 --- a/spec/features/markdown/markdown_spec.rb +++ b/spec/features/markdown/markdown_spec.rb @@ -206,6 +206,9 @@ RSpec.describe 'GitLab Markdown', :aggregate_failures do # `markdown` helper expects a `@project` and `@group` variable @project = @feat.project @group = @feat.group + + stub_application_setting(plantuml_enabled: true, plantuml_url: 'http://localhost:8080') + stub_application_setting(kroki_enabled: true, kroki_url: 'http://localhost:8000') end let(:project) { @feat.project } # Shadow this so matchers can use it @@ -265,6 +268,18 @@ RSpec.describe 'GitLab Markdown', :aggregate_failures do aggregate_failures 'ColorFilter' do expect(doc).to parse_colors end + + aggregate_failures 'MermaidFilter' do + expect(doc).to parse_mermaid + end + + aggregate_failures 'PlantumlFilter' do + expect(doc).to parse_plantuml + end + + aggregate_failures 'KrokiFilter' do + expect(doc).to parse_kroki + end end end @@ -338,6 +353,18 @@ RSpec.describe 'GitLab Markdown', :aggregate_failures do aggregate_failures 'ColorFilter' do expect(doc).to parse_colors end + + aggregate_failures 'MermaidFilter' do + expect(doc).to parse_mermaid + end + + aggregate_failures 'PlantumlFilter' do + expect(doc).to parse_plantuml + end + + aggregate_failures 'KrokiFilter' do + expect(doc).to parse_kroki + end end end |