Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-08-28 16:14:44 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-08-28 16:14:44 +0300
commite7b5a68daecd0aff0cc66666cb38c7971027a05a (patch)
treeb153db785557cc807da5e623cb130a1ef384926e /spec/controllers
parentc8fb2e6a3942330079bde06d919cd33c6bc7600e (diff)
Add latest changes from gitlab-org/gitlab@13-3-stable-ee
Diffstat (limited to 'spec/controllers')
-rw-r--r--spec/controllers/groups_controller_spec.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/controllers/groups_controller_spec.rb b/spec/controllers/groups_controller_spec.rb
index 469e58c94e7..78de89de796 100644
--- a/spec/controllers/groups_controller_spec.rb
+++ b/spec/controllers/groups_controller_spec.rb
@@ -555,6 +555,21 @@ RSpec.describe GroupsController do
end
end
+ context 'when there is a conflicting group path' do
+ render_views
+
+ let!(:conflict_group) { create(:group, path: SecureRandom.hex(12) ) }
+ let!(:old_name) { group.name }
+
+ it 'does not render references to the conflicting group' do
+ put :update, params: { id: group.to_param, group: { path: conflict_group.path } }
+
+ expect(response).to have_gitlab_http_status(:ok)
+ expect(group.reload.name).to eq(old_name)
+ expect(response.body).not_to include(conflict_group.path)
+ end
+ end
+
context 'when a project inside the group has container repositories' do
before do
stub_container_registry_config(enabled: true)