diff options
Diffstat (limited to 'spec/lib')
-rw-r--r-- | spec/lib/gitlab/usage_data_counters/productivity_analytics_counter_spec.rb | 9 | ||||
-rw-r--r-- | spec/lib/gitlab/usage_data_spec.rb | 2 |
2 files changed, 11 insertions, 0 deletions
diff --git a/spec/lib/gitlab/usage_data_counters/productivity_analytics_counter_spec.rb b/spec/lib/gitlab/usage_data_counters/productivity_analytics_counter_spec.rb new file mode 100644 index 00000000000..f4e92791728 --- /dev/null +++ b/spec/lib/gitlab/usage_data_counters/productivity_analytics_counter_spec.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +require 'spec_helper' + +describe Gitlab::UsageDataCounters::ProductivityAnalyticsCounter do + it_behaves_like 'a redis usage counter', 'ProductivityAnalytics', :views + + it_behaves_like 'a redis usage counter with totals', :productivity_analytics, views: 3 +end diff --git a/spec/lib/gitlab/usage_data_spec.rb b/spec/lib/gitlab/usage_data_spec.rb index b3a179e276b..8eb64b97d6a 100644 --- a/spec/lib/gitlab/usage_data_spec.rb +++ b/spec/lib/gitlab/usage_data_spec.rb @@ -62,6 +62,7 @@ describe Gitlab::UsageData do influxdb_metrics_enabled prometheus_metrics_enabled cycle_analytics_views + productivity_analytics_views )) expect(subject).to include( @@ -79,6 +80,7 @@ describe Gitlab::UsageData do web_ide_merge_requests: a_kind_of(Integer), navbar_searches: a_kind_of(Integer), cycle_analytics_views: a_kind_of(Integer), + productivity_analytics_views: a_kind_of(Integer), source_code_pushes: a_kind_of(Integer) ) end |