Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/matchers/markdown_matchers.rb')
-rw-r--r--spec/support/matchers/markdown_matchers.rb12
1 files changed, 11 insertions, 1 deletions
diff --git a/spec/support/matchers/markdown_matchers.rb b/spec/support/matchers/markdown_matchers.rb
index 8bec3be2535..a80c269f915 100644
--- a/spec/support/matchers/markdown_matchers.rb
+++ b/spec/support/matchers/markdown_matchers.rb
@@ -134,7 +134,7 @@ module MarkdownMatchers
set_default_markdown_messages
match do |actual|
- expect(actual).to have_selector('a.gfm.gfm-snippet', count: 5)
+ expect(actual).to have_selector('a.gfm.gfm-snippet', count: 9)
end
end
@@ -196,6 +196,16 @@ module MarkdownMatchers
end
end
+ # MathFilter
+ matcher :parse_math do
+ set_default_markdown_messages
+
+ match do |actual|
+ expect(actual).to have_selector('[data-math-style="inline"]', count: 4)
+ expect(actual).to have_selector('[data-math-style="display"]', count: 4)
+ end
+ end
+
# InlineDiffFilter
matcher :parse_inline_diffs do
set_default_markdown_messages