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:
Rémy Coutable 2018-05-22 15:15:31 +02:00
parent 660439e968
commit 53e30e1528
No known key found for this signature in database
GPG key ID: 98DFFD1C0C62B70B

View file

@ -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)