diff options
author | Rémy Coutable <remy@rymai.me> | 2018-05-22 15:15:31 +0200 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2018-05-24 19:29:30 +0200 |
commit | 53e30e15281f4633a06b73d23ca1a093bb12597c (patch) | |
tree | f917a445483c43b247d5f1970dedefa09e711a4b /spec/controllers/projects | |
parent | 660439e968c77f216b0579250d0042d62ea4cb95 (diff) | |
download | gitlab-ce-53e30e15281f4633a06b73d23ca1a093bb12597c.tar.gz |
Reduce CE/EE diff in spec/controllers/projects/group_links_controller_spec.rb
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/controllers/projects')
-rw-r--r-- | spec/controllers/projects/group_links_controller_spec.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/controllers/projects/group_links_controller_spec.rb b/spec/controllers/projects/group_links_controller_spec.rb index 5bfc3d31401..72f6af112b3 100644 --- a/spec/controllers/projects/group_links_controller_spec.rb +++ b/spec/controllers/projects/group_links_controller_spec.rb @@ -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) |