Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
867977c7
Commit
867977c7
authored
Apr 12, 2019
by
Mark Fletcher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use nested_group metadata for subgroup specs
parent
b1fb5b7e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
ee/spec/lib/gitlab/insights/finders/issuable_finder_spec.rb
ee/spec/lib/gitlab/insights/finders/issuable_finder_spec.rb
+13
-2
No files found.
ee/spec/lib/gitlab/insights/finders/issuable_finder_spec.rb
View file @
867977c7
...
...
@@ -121,9 +121,8 @@ RSpec.describe Gitlab::Insights::Finders::IssuableFinder do
end
end
context
'for a group
'
do
shared_examples_for
'group tests
'
do
let
(
:entity
)
{
create
(
:group
)
}
let
(
:project
)
{
create
(
:project
,
:public
,
group:
create
(
:group
,
parent:
entity
))
}
let
(
:label_type
)
{
:group_label
}
let
(
:label_entity_association_key
)
{
:group
}
...
...
@@ -152,6 +151,18 @@ RSpec.describe Gitlab::Insights::Finders::IssuableFinder do
end
end
context
'for a group'
do
include_examples
'group tests'
do
let
(
:project
)
{
create
(
:project
,
:public
,
group:
entity
)
}
end
end
context
'for a group with subgroups'
,
:nested_groups
do
include_examples
'group tests'
do
let
(
:project
)
{
create
(
:project
,
:public
,
group:
create
(
:group
,
parent:
entity
))
}
end
end
context
'for a project'
do
let
(
:project
)
{
create
(
:project
,
:public
)
}
let
(
:entity
)
{
project
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment