Reduce CE/EE diff in spec/controllers/projects/group_links_controller_spec.rb
Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
parent
660439e968
commit
53e30e1528
1 changed files with 12 additions and 0 deletions
|
@ -21,6 +21,18 @@ describe Projects::GroupLinksController do
|
|||
end
|
||||
end
|
||||
|
||||
context 'when project is not allowed to be shared with a group' do
|
||||
before do
|
||||
group.update_attributes(share_with_group_lock: false)
|
||||
end
|
||||
|
||||
include_context 'link project to group'
|
||||
|
||||
it 'responds with status 404' do
|
||||
expect(response).to have_gitlab_http_status(404)
|
||||
end
|
||||
end
|
||||
|
||||
context 'when user has access to group he want to link project to' do
|
||||
before do
|
||||
group.add_developer(user)
|
||||
|
|
Loading…
Reference in a new issue