Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@vanlanduyt.co>2018-08-06 12:52:10 +0300
committerBob Van Landuyt <bob@vanlanduyt.co>2018-08-06 14:33:07 +0300
commitbaffe82ace1ca3ee247c1eee2a5c21aea2256539 (patch)
treef8463f91103e7c8ac7809924c8978cf866b374dd /spec/support
parent0f871450cd3e77b0a94769a12d2d100a6d093e2c (diff)
Hide instance statistics on new installations
Making the migrations and the default do the right thing in the first place. This makes 20180806094307 a no-op.
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/shared_examples/instance_statistics_controllers_shared_examples.rb2
1 files changed, 2 insertions, 0 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
index 5334af841e1..9f0604b5f8e 100644
--- a/spec/support/shared_examples/instance_statistics_controllers_shared_examples.rb
+++ b/spec/support/shared_examples/instance_statistics_controllers_shared_examples.rb
@@ -9,6 +9,8 @@ shared_examples 'instance statistics availability' do
describe 'GET #index' do
it 'is available when the feature is available publicly' do
+ stub_application_setting(instance_statistics_visibility_private: false)
+
get :index
expect(response).to have_gitlab_http_status(:success)