Reduce CE/EE diff in spec/controllers/projects/group_links_controller_spec.rb

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 660439e9
......@@ -21,6 +21,18 @@
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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment