summaryrefslogtreecommitdiff
path: root/spec/services/users/activity_service_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/services/users/activity_service_spec.rb')
-rw-r--r--spec/services/users/activity_service_spec.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/services/users/activity_service_spec.rb b/spec/services/users/activity_service_spec.rb
index 092c5cd3e5e..47a4b943d83 100644
--- a/spec/services/users/activity_service_spec.rb
+++ b/spec/services/users/activity_service_spec.rb
@@ -34,6 +34,13 @@ RSpec.describe Users::ActivityService do
subject.execute
end
+
+ it 'tracks RedisHLL event' do
+ expect(Gitlab::UsageDataCounters::HLLRedisCounter).to receive(:track_event)
+ .with('unique_active_user', values: user.id)
+
+ subject.execute
+ end
end
context 'when a bad object is passed' do