diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-02-18 13:34:06 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-02-18 13:34:06 +0300 |
commit | 859a6fb938bb9ee2a317c46dfa4fcc1af49608f0 (patch) | |
tree | d7f2700abe6b4ffcb2dcfc80631b2d87d0609239 /spec/features/markdown/markdown_spec.rb | |
parent | 446d496a6d000c73a304be52587cd9bbc7493136 (diff) |
Add latest changes from gitlab-org/gitlab@13-9-stable-eev13.9.0-rc42
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 |