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:
authorDouwe Maan <douwe@gitlab.com>2015-12-24 16:43:07 +0300
committerDouwe Maan <douwe@gitlab.com>2015-12-24 16:43:07 +0300
commit989131c530f06fc52e9212df1e3e8d48eae4902f (patch)
treef71d989c7aedba3bc4cb38bb1bf7607d181fb48b /spec/support/matchers/markdown_matchers.rb
parent331154ffdf899a82c67487a70436ce49e494256b (diff)
Render milestone links as references
Diffstat (limited to 'spec/support/matchers/markdown_matchers.rb')
-rw-r--r--spec/support/matchers/markdown_matchers.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/support/matchers/markdown_matchers.rb b/spec/support/matchers/markdown_matchers.rb
index 7eadcd58c1f..b251e7f8f23 100644
--- a/spec/support/matchers/markdown_matchers.rb
+++ b/spec/support/matchers/markdown_matchers.rb
@@ -130,6 +130,15 @@ module MarkdownMatchers
end
end
+ # MilestoneReferenceFilter
+ matcher :reference_milestones do
+ set_default_markdown_messages
+
+ match do |actual|
+ expect(actual).to have_selector('a.gfm.gfm-milestone', count: 3)
+ end
+ end
+
# TaskListFilter
matcher :parse_task_lists do
set_default_markdown_messages