diff options
Diffstat (limited to 'spec/controllers/groups/group_links_controller_spec.rb')
-rw-r--r-- | spec/controllers/groups/group_links_controller_spec.rb | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/spec/controllers/groups/group_links_controller_spec.rb b/spec/controllers/groups/group_links_controller_spec.rb index 21169188386..ca430414d17 100644 --- a/spec/controllers/groups/group_links_controller_spec.rb +++ b/spec/controllers/groups/group_links_controller_spec.rb @@ -99,18 +99,6 @@ describe Groups::GroupLinksController do expect(flash[:alert]).to eq('error') end end - - context 'when feature flag is disabled' do - before do - stub_feature_flags(share_group_with_group: false) - end - - it 'renders 404' do - subject - - expect(response).to have_gitlab_http_status(:not_found) - end - end end context 'when user does not have access to the group' do @@ -184,18 +172,6 @@ describe Groups::GroupLinksController do expect(response).to have_gitlab_http_status(:not_found) end end - - context 'when feature flag is disabled' do - before do - stub_feature_flags(share_group_with_group: false) - end - - it 'renders 404' do - subject - - expect(response).to have_gitlab_http_status(:not_found) - end - end end describe '#destroy' do @@ -231,17 +207,5 @@ describe Groups::GroupLinksController do expect(response).to have_gitlab_http_status(:not_found) end end - - context 'when feature flag is disabled' do - before do - stub_feature_flags(share_group_with_group: false) - end - - it 'renders 404' do - subject - - expect(response).to have_gitlab_http_status(:not_found) - end - end end end |