Commit f2888ba3 authored by Jan Provaznik's avatar Jan Provaznik

Fix flaky search spec

Assures that parent group path is unique/different from its
subgroups, if path prefix of a subgroup could be same (e.g. parent
group 'group1' and subgroup 'group11'), then 'skips searching in full path'
would be failing.
parent 81144ba6
......@@ -10,7 +10,7 @@ RSpec.describe API::Groups do
let_it_be(:user2) { create(:user) }
let_it_be(:user3) { create(:user) }
let_it_be(:admin) { create(:admin) }
let_it_be(:group1) { create(:group, avatar: File.open(uploaded_image_temp_path)) }
let_it_be(:group1) { create(:group, path: 'some_path', avatar: File.open(uploaded_image_temp_path)) }
let_it_be(:group2) { create(:group, :private) }
let_it_be(:project1) { create(:project, namespace: group1) }
let_it_be(:project2) { create(:project, namespace: group2) }
......
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