diff options
author | Jacob Schatz <jschatz@gitlab.com> | 2018-01-05 20:09:16 +0300 |
---|---|---|
committer | Jacob Schatz <jschatz@gitlab.com> | 2018-01-05 20:09:16 +0300 |
commit | 3d162d192ba2a57776de62b553a2a0a9a9245f8a (patch) | |
tree | e1dea8a8d38a1d7b10283038f52bdd00e01d270e /spec/lib | |
parent | b2b780178d8b17bb02a54ae2cbc10f349d9a2d42 (diff) | |
parent | 288b276077987bc77f191d2cb93eb2f764c5c1ef (diff) |
Merge branch 'dm-copy-mermaid-as-gfm' into 'master'
Copy Mermaid graphs as GFM
Closes #41211
See merge request gitlab-org/gitlab-ce!16046
Diffstat (limited to 'spec/lib')
-rw-r--r-- | spec/lib/banzai/filter/mermaid_filter_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/banzai/filter/mermaid_filter_spec.rb b/spec/lib/banzai/filter/mermaid_filter_spec.rb index 532d25e121d..f6474c8936d 100644 --- a/spec/lib/banzai/filter/mermaid_filter_spec.rb +++ b/spec/lib/banzai/filter/mermaid_filter_spec.rb @@ -3,9 +3,9 @@ require 'spec_helper' describe Banzai::Filter::MermaidFilter do include FilterSpecHelper - it 'adds `js-render-mermaid` class to the `pre` tag' do + it 'adds `js-render-mermaid` class to the `code` tag' do doc = filter("<pre class='code highlight js-syntax-highlight mermaid' lang='mermaid' v-pre='true'><code>graph TD;\n A-->B;\n</code></pre>") - result = doc.xpath('descendant-or-self::pre').first + result = doc.css('code').first expect(result[:class]).to include('js-render-mermaid') end |