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
path: root/spec
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2017-08-25 18:21:27 +0300
committerNick Thomas <nick@gitlab.com>2017-08-25 18:21:27 +0300
commit66e18a128498d6f3fab193a80c6b4f45f2c3d7fc (patch)
tree12642133cd8ec63b7c9e81a822fa577e81f246fb /spec
parent8b73df0cf534797bff9ce0f5b95af5347ea59ca6 (diff)
Don't add admins as masters to projects created in another user's namespace
Only admins have the ability to create a project in another user's personal namespace. Prior to this commit, we were explicitly adding them as masters to the project. However, admins already have access (by virture of being admins), so this is unnecessary.
Diffstat (limited to 'spec')
-rw-r--r--spec/services/projects/create_service_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/services/projects/create_service_spec.rb b/spec/services/projects/create_service_spec.rb
index b0dc7488b5f..088b7b4fc04 100644
--- a/spec/services/projects/create_service_spec.rb
+++ b/spec/services/projects/create_service_spec.rb
@@ -38,7 +38,7 @@ describe Projects::CreateService, '#execute' do
expect(project).to be_persisted
expect(project.owner).to eq(user)
- expect(project.team.masters).to include(user, admin)
+ expect(project.team.masters).to contain_exactly(user)
expect(project.namespace).to eq(user.namespace)
end
end