diff options
Diffstat (limited to 'spec/support/matchers/markdown_matchers.rb')
-rw-r--r-- | spec/support/matchers/markdown_matchers.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/support/matchers/markdown_matchers.rb b/spec/support/matchers/markdown_matchers.rb index 3245f8418b1..35b2993443f 100644 --- a/spec/support/matchers/markdown_matchers.rb +++ b/spec/support/matchers/markdown_matchers.rb @@ -193,6 +193,17 @@ module MarkdownMatchers end end + # AudioLinkFilter + matcher :parse_audio_links do + set_default_markdown_messages + + match do |actual| + audio = actual.at_css('audio') + + expect(audio['src']).to end_with('/assets/audio/gitlab-demo.wav') + end + end + # ColorFilter matcher :parse_colors do set_default_markdown_messages |