summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2018-09-09 14:01:23 -0700
committerStan Hu <stanhu@gmail.com>2018-09-09 14:02:27 -0700
commit0519c14a13de6d0f2348d49ef3bf4be46f953e5d (patch)
treecc3980ea5e61720c2018e52ec0327dc590d8f31d
parenta81775a0a07c0f4fb815d744b17efe00d7ea94c5 (diff)
downloadgitlab-ce-0519c14a13de6d0f2348d49ef3bf4be46f953e5d.tar.gz
Explicitly enable usage ping for instance statistics spec
This is similar to https://gitlab.com/gitlab-org/gitlab-ee/issues/7511, but the root cause is https://gitlab.com/gitlab-org/gitlab-ce/issues/51268.
-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..8ea307c7c61 100644
--- a/spec/support/shared_examples/instance_statistics_controllers_shared_examples.rb
+++ b/spec/support/shared_examples/instance_statistics_controllers_shared_examples.rb
@@ -5,6 +5,8 @@ shared_examples 'instance statistics availability' do
before do
sign_in(user)
+
+ stub_application_setting(usage_ping_enabled: true)
end
describe 'GET #index' do