summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2018-09-08 00:23:01 -0700
committerStan Hu <stanhu@gmail.com>2018-09-08 00:23:01 -0700
commit85a3b3dff409c5bcf5a58f1b1d7d435b2086dd99 (patch)
treee718e1fe09719269751236bd0f6eebb90536f61f
parent75bdbf25a8df0bc317a26f36c497e7a6b26c1eb1 (diff)
downloadgitlab-ce-sh-fix-cohorts-spec-ce.tar.gz
Fix spec/features/instance_statistics/cohorts_spec.rbsh-fix-cohorts-spec-ce
If one spec disables the usage ping in the in-memory application settings (e.g. spec/features/usage_stats_consent_spec.rb), then this spec will fail. To work around this problem, we enable the usage ping explicitly in the setup phase. Backport of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/7290
-rw-r--r--spec/features/instance_statistics/cohorts_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/features/instance_statistics/cohorts_spec.rb b/spec/features/instance_statistics/cohorts_spec.rb
index 81fc5eff980..40e65515ceb 100644
--- a/spec/features/instance_statistics/cohorts_spec.rb
+++ b/spec/features/instance_statistics/cohorts_spec.rb
@@ -3,6 +3,8 @@ require 'rails_helper'
describe 'Cohorts page' do
before do
sign_in(create(:admin))
+
+ stub_application_setting(usage_ping_enabled: true)
end
it 'See users count per month' do