Commit 984b9273 authored by Alex Kalderimis's avatar Alex Kalderimis

Remove unnecessary comment

And update context description to match Rubocop rules.
parent 517dd200
...@@ -46,13 +46,11 @@ RSpec.describe Resolvers::LabelsResolver do ...@@ -46,13 +46,11 @@ RSpec.describe Resolvers::LabelsResolver do
end end
end end
context 'at project level' do context 'with a parent project' do
before_all do before_all do
group.add_developer(current_user) group.add_developer(current_user)
end 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 # 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 where(:include_ancestor_groups, :search_term, :expected_labels) do
nil | nil | -> { [label1, label2, subgroup_label1, subgroup_label2] } nil | nil | -> { [label1, label2, subgroup_label1, subgroup_label2] }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment