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
984b9273
Commit
984b9273
authored
Mar 01, 2021
by
Alex Kalderimis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary comment
And update context description to match Rubocop rules.
parent
517dd200
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
spec/graphql/resolvers/labels_resolver_spec.rb
spec/graphql/resolvers/labels_resolver_spec.rb
+1
-3
No files found.
spec/graphql/resolvers/labels_resolver_spec.rb
View file @
984b9273
...
...
@@ -46,13 +46,11 @@ RSpec.describe Resolvers::LabelsResolver do
end
end
context
'
at project level
'
do
context
'
with a parent project
'
do
before_all
do
group
.
add_developer
(
current_user
)
end
# because :include_ancestor_groups, :include_descendant_groups, :only_group_labels default to false
# the `nil` value would be equivalent to passing in `false` so just check for `nil` option
# the expected result is wrapped in a lambda to get around the phase restrictions of RSpec::Parameterized
where
(
:include_ancestor_groups
,
:search_term
,
:expected_labels
)
do
nil
|
nil
|
->
{
[
label1
,
label2
,
subgroup_label1
,
subgroup_label2
]
}
...
...
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