diff options
| author | Sean McGivern <sean@gitlab.com> | 2017-08-03 12:50:06 +0100 |
|---|---|---|
| committer | Sean McGivern <sean@gitlab.com> | 2017-08-07 11:55:00 +0100 |
| commit | 149528f472f3d2f3865ae01c764b81c6a97f9380 (patch) | |
| tree | 8c9e38e7071b0a0002d3741259a7318e7a0427e5 /spec/support | |
| parent | 03b816f3e845c9b25d3588336fc1616238465deb (diff) | |
| download | gitlab-ce-149528f472f3d2f3865ae01c764b81c6a97f9380.tar.gz | |
Support references to group milestones
Group milestones can only be referred to by name, not IID. They also do not
support cross-project references.
Diffstat (limited to 'spec/support')
| -rw-r--r-- | spec/support/markdown_feature.rb | 6 | ||||
| -rw-r--r-- | spec/support/matchers/markdown_matchers.rb | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/spec/support/markdown_feature.rb b/spec/support/markdown_feature.rb index 21a054af4e1..c90359d7cfa 100644 --- a/spec/support/markdown_feature.rb +++ b/spec/support/markdown_feature.rb @@ -23,7 +23,7 @@ class MarkdownFeature # Direct references ---------------------------------------------------------- def project - @project ||= create(:project, :repository).tap do |project| + @project ||= create(:project, :repository, group: group).tap do |project| project.team << [user, :master] end end @@ -75,6 +75,10 @@ class MarkdownFeature @milestone ||= create(:milestone, name: 'next goal', project: project) end + def group_milestone + @group_milestone ||= create(:milestone, name: 'group-milestone', group: group) + end + # Cross-references ----------------------------------------------------------- def xproject diff --git a/spec/support/matchers/markdown_matchers.rb b/spec/support/matchers/markdown_matchers.rb index 7afa57fb76b..d12b2757427 100644 --- a/spec/support/matchers/markdown_matchers.rb +++ b/spec/support/matchers/markdown_matchers.rb @@ -155,7 +155,7 @@ module MarkdownMatchers set_default_markdown_messages match do |actual| - expect(actual).to have_selector('a.gfm.gfm-milestone', count: 6) + expect(actual).to have_selector('a.gfm.gfm-milestone', count: 8) end end |
