Commit 85a3b3df authored by Stan Hu's avatar Stan Hu

Fix spec/features/instance_statistics/cohorts_spec.rb

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
parent 75bdbf25
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment