summaryrefslogtreecommitdiff
path: root/spec/support
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2018-07-27 13:12:35 +0000
committerSean McGivern <sean@mcgivern.me.uk>2018-07-27 13:12:35 +0000
commited81ee9ba2b5a0b68996ccb238bfa4c69a6df062 (patch)
tree831e186cd5ed4072a0883c4eac563cbcd9c70f23 /spec/support
parent636ea40e182fca92e89facbcb52445fcefef9506 (diff)
downloadgitlab-ce-ed81ee9ba2b5a0b68996ccb238bfa4c69a6df062.tar.gz
Revert "Merge branch '41416-making-instance-wide-data-tools-more-accessible' into 'master'"
This reverts merge request !20679
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/shared_examples/instance_statistics_controllers_shared_examples.rb37
1 files changed, 0 insertions, 37 deletions
diff --git a/spec/support/shared_examples/instance_statistics_controllers_shared_examples.rb b/spec/support/shared_examples/instance_statistics_controllers_shared_examples.rb
deleted file mode 100644
index 5334af841e1..00000000000
--- a/spec/support/shared_examples/instance_statistics_controllers_shared_examples.rb
+++ /dev/null
@@ -1,37 +0,0 @@
-# frozen_string_literal: true
-
-shared_examples 'instance statistics availability' do
- let(:user) { create(:user) }
-
- before do
- sign_in(user)
- end
-
- describe 'GET #index' do
- it 'is available when the feature is available publicly' do
- get :index
-
- expect(response).to have_gitlab_http_status(:success)
- end
-
- it 'renders a 404 when the feature is not available publicly' do
- stub_application_setting(instance_statistics_visibility_private: true)
-
- get :index
-
- expect(response).to have_gitlab_http_status(:not_found)
- end
-
- context 'for admins' do
- let(:user) { create(:admin) }
-
- it 'allows access when the feature is not available publicly' do
- stub_application_setting(instance_statistics_visibility_private: true)
-
- get :index
-
- expect(response).to have_gitlab_http_status(:success)
- end
- end
- end
-end