diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-09-22 21:10:04 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-09-22 21:10:04 +0000 |
commit | 27c4555a42620512b207f18290724e1fdcf0ffa9 (patch) | |
tree | f466b48511d8ed308353a08dd5b8b6e806cf1829 /spec/controllers/concerns | |
parent | 3bb41f7bdd2a94887af92fc33e8afac1032f0fbc (diff) | |
download | gitlab-ce-27c4555a42620512b207f18290724e1fdcf0ffa9.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/controllers/concerns')
-rw-r--r-- | spec/controllers/concerns/redis_tracking_spec.rb | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/spec/controllers/concerns/redis_tracking_spec.rb b/spec/controllers/concerns/redis_tracking_spec.rb index 3795fca5576..1b41e1820b1 100644 --- a/spec/controllers/concerns/redis_tracking_spec.rb +++ b/spec/controllers/concerns/redis_tracking_spec.rb @@ -36,21 +36,9 @@ RSpec.describe RedisTracking do end end - context 'with usage ping disabled' do - it 'does not track the event' do - stub_feature_flags(feature => true) - allow(Gitlab::CurrentSettings).to receive(:usage_ping_enabled?).and_return(false) - - expect(Gitlab::UsageDataCounters::HLLRedisCounter).not_to receive(:track_event) - - get :index - end - end - - context 'with feature enabled and usage ping enabled' do + context 'with feature enabled' do before do stub_feature_flags(feature => true) - allow(Gitlab::CurrentSettings).to receive(:usage_ping_enabled?).and_return(true) end context 'when user is logged in' do |