Commit c453574b authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix failure in spec/services/groups/autocomplete_service_spec.rb

You can't add user to subgroup with lower access level than parent group
Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 245e1483
...@@ -88,7 +88,7 @@ describe Groups::AutocompleteService do ...@@ -88,7 +88,7 @@ describe Groups::AutocompleteService do
let!(:subgroup_milestone) { create(:milestone, group: sub_group) } let!(:subgroup_milestone) { create(:milestone, group: sub_group) }
before do before do
sub_group.add_guest(user) sub_group.add_master(user)
end end
context 'when group is public' do context 'when group is public' do
......
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