summaryrefslogtreecommitdiff
path: root/spec/frontend/fixtures/namespaces.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-11-17 11:33:21 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-11-17 11:33:21 +0000
commit7021455bd1ed7b125c55eb1b33c5a01f2bc55ee0 (patch)
tree5bdc2229f5198d516781f8d24eace62fc7e589e9 /spec/frontend/fixtures/namespaces.rb
parent185b095e93520f96e9cfc31d9c3e69b498cdab7c (diff)
downloadgitlab-ce-7021455bd1ed7b125c55eb1b33c5a01f2bc55ee0.tar.gz
Add latest changes from gitlab-org/gitlab@15-6-stable-eev15.6.0-rc42
Diffstat (limited to 'spec/frontend/fixtures/namespaces.rb')
-rw-r--r--spec/frontend/fixtures/namespaces.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/spec/frontend/fixtures/namespaces.rb b/spec/frontend/fixtures/namespaces.rb
index a3f295f4e66..9858e3241cb 100644
--- a/spec/frontend/fixtures/namespaces.rb
+++ b/spec/frontend/fixtures/namespaces.rb
@@ -32,6 +32,26 @@ RSpec.describe 'Jobs (JavaScript fixtures)' do
end
end
+ describe API::Groups, type: :request do
+ let_it_be(:user) { create(:user) }
+
+ describe 'transfer_locations' do
+ let_it_be(:groups) { create_list(:group, 4) }
+ let_it_be(:transfer_from_group) { create(:group) }
+
+ before_all do
+ groups.each { |group| group.add_owner(user) }
+ transfer_from_group.add_owner(user)
+ end
+
+ it 'api/groups/transfer_locations.json' do
+ get api("/groups/#{transfer_from_group.id}/transfer_locations", user)
+
+ expect(response).to be_successful
+ end
+ end
+ end
+
describe GraphQL::Query, type: :request do
let_it_be(:user) { create(:user) }