summaryrefslogtreecommitdiff
path: root/spec/policies
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@gitlab.com>2018-08-06 15:44:23 +0000
committerBob Van Landuyt <bob@gitlab.com>2018-08-06 15:44:23 +0000
commite96862f2110a3ec35fd4a6a220c99d93879b1ac5 (patch)
tree98978a54192e6e22bfd4d5ec25e7498fcaeb999e /spec/policies
parent415b2f943ba80ef3b6746af0a98c6dbe062e803c (diff)
downloadgitlab-ce-e96862f2110a3ec35fd4a6a220c99d93879b1ac5.tar.gz
Revert "Merge branch 'bvl-instance-stats-default' into 'master'"revert-77c75d2b
This reverts merge request !21044
Diffstat (limited to 'spec/policies')
-rw-r--r--spec/policies/global_policy_spec.rb16
1 files changed, 2 insertions, 14 deletions
diff --git a/spec/policies/global_policy_spec.rb b/spec/policies/global_policy_spec.rb
index 35f1912c1c8..30d68e7dc9d 100644
--- a/spec/policies/global_policy_spec.rb
+++ b/spec/policies/global_policy_spec.rb
@@ -183,13 +183,7 @@ describe GlobalPolicy do
describe 'read instance statistics' do
context 'regular user' do
- context 'when instance statistics are publicly available' do
- before do
- stub_application_setting(instance_statistics_visibility_private: false)
- end
-
- it { is_expected.to be_allowed(:read_instance_statistics) }
- end
+ it { is_expected.to be_allowed(:read_instance_statistics) }
context 'when instance statistics are set to private' do
before do
@@ -203,13 +197,7 @@ describe GlobalPolicy do
context 'admin' do
let(:current_user) { create(:admin) }
- context 'when instance statistics are publicly available' do
- before do
- stub_application_setting(instance_statistics_visibility_private: false)
- end
-
- it { is_expected.to be_allowed(:read_instance_statistics) }
- end
+ it { is_expected.to be_allowed(:read_instance_statistics) }
context 'when instance statistics are set to private' do
before do