diff options
author | Nick Thomas <nick@gitlab.com> | 2017-08-25 18:21:27 +0300 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2017-08-25 18:21:27 +0300 |
commit | 66e18a128498d6f3fab193a80c6b4f45f2c3d7fc (patch) | |
tree | 12642133cd8ec63b7c9e81a822fa577e81f246fb /spec | |
parent | 8b73df0cf534797bff9ce0f5b95af5347ea59ca6 (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.rb | 2 |
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 |