diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-14 18:09:08 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-14 18:09:08 +0300 |
commit | b3a736ed88a1db0391cd9881e70b987bab7d89d1 (patch) | |
tree | a91ca3a06abd4c3412775ac3c49b11e3151df2be /spec/support/shared_examples/requests | |
parent | 5366964a10484c2783a646b35a6da9eece01b242 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/support/shared_examples/requests')
-rw-r--r-- | spec/support/shared_examples/requests/self_monitoring_shared_examples.rb | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/spec/support/shared_examples/requests/self_monitoring_shared_examples.rb b/spec/support/shared_examples/requests/self_monitoring_shared_examples.rb index f6cb2555450..db11b1fe07d 100644 --- a/spec/support/shared_examples/requests/self_monitoring_shared_examples.rb +++ b/spec/support/shared_examples/requests/self_monitoring_shared_examples.rb @@ -1,23 +1,5 @@ # frozen_string_literal: true -RSpec.shared_examples 'not accessible if feature flag is disabled' do - before do - stub_feature_flags(self_monitoring_project: false) - end - - it 'returns not_implemented' do - subject - - aggregate_failures do - expect(response).to have_gitlab_http_status(:not_implemented) - expect(json_response).to eq( - 'message' => _('Self-monitoring is not enabled on this GitLab server, contact your administrator.'), - 'documentation_url' => help_page_path('administration/monitoring/gitlab_self_monitoring_project/index') - ) - end - end -end - RSpec.shared_examples 'not accessible to non-admin users' do context 'with unauthenticated user' do it 'redirects to signin page' do |