summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/usage_data_counters/source_code_counter_spec.rb
diff options
context:
space:
mode:
authorIgor <idrozdov@gitlab.com>2019-08-13 22:33:16 +0000
committerStan Hu <stanhu@gmail.com>2019-08-13 22:33:16 +0000
commit04598039a53c452df9b1a30404f2abbe46f8e229 (patch)
tree0163503ce3a2395621f610489ce15eaa16868670 /spec/lib/gitlab/usage_data_counters/source_code_counter_spec.rb
parent383a18403f049652807df0be3be7a4a9cfc2aa95 (diff)
downloadgitlab-ce-04598039a53c452df9b1a30404f2abbe46f8e229.tar.gz
Add usage pings for source code pushes
Source Code Usage Ping for Create SMAU
Diffstat (limited to 'spec/lib/gitlab/usage_data_counters/source_code_counter_spec.rb')
-rw-r--r--spec/lib/gitlab/usage_data_counters/source_code_counter_spec.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/lib/gitlab/usage_data_counters/source_code_counter_spec.rb b/spec/lib/gitlab/usage_data_counters/source_code_counter_spec.rb
new file mode 100644
index 00000000000..47077345e0c
--- /dev/null
+++ b/spec/lib/gitlab/usage_data_counters/source_code_counter_spec.rb
@@ -0,0 +1,9 @@
+# frozen_string_literal: true
+
+require 'spec_helper'
+
+describe Gitlab::UsageDataCounters::SourceCodeCounter do
+ it_behaves_like 'a redis usage counter', 'Source Code', :pushes
+
+ it_behaves_like 'a redis usage counter with totals', :source_code, pushes: 5
+end