diff options
author | Igor <idrozdov@gitlab.com> | 2019-08-26 17:30:45 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2019-08-26 17:30:45 +0300 |
commit | a8040a61d8bb6edb325236f9748c30e39ecaa335 (patch) | |
tree | ac7b8a093a8575221bf0d5ee3ef5bfe288c84e31 /spec/lib | |
parent | 830ea119940d0cf5f29720cc4e24e3361e7fc174 (diff) |
Add usage pings for merge request creating
Code Review Usage Ping for Create SMAU
Diffstat (limited to 'spec/lib')
-rw-r--r-- | spec/lib/gitlab/usage_data_counters/merge_request_counter_spec.rb | 9 | ||||
-rw-r--r-- | spec/lib/gitlab/usage_data_spec.rb | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/spec/lib/gitlab/usage_data_counters/merge_request_counter_spec.rb b/spec/lib/gitlab/usage_data_counters/merge_request_counter_spec.rb new file mode 100644 index 00000000000..4be4a661260 --- /dev/null +++ b/spec/lib/gitlab/usage_data_counters/merge_request_counter_spec.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +require 'spec_helper' + +describe Gitlab::UsageDataCounters::MergeRequestCounter do + it_behaves_like 'a redis usage counter', 'Merge Request', :create + + it_behaves_like 'a redis usage counter with totals', :merge_request, create: 5 +end diff --git a/spec/lib/gitlab/usage_data_spec.rb b/spec/lib/gitlab/usage_data_spec.rb index dda119e09b1..b3a179e276b 100644 --- a/spec/lib/gitlab/usage_data_spec.rb +++ b/spec/lib/gitlab/usage_data_spec.rb @@ -69,6 +69,7 @@ describe Gitlab::UsageData do snippet_update: a_kind_of(Integer), snippet_comment: a_kind_of(Integer), merge_request_comment: a_kind_of(Integer), + merge_request_create: a_kind_of(Integer), commit_comment: a_kind_of(Integer), wiki_pages_create: a_kind_of(Integer), wiki_pages_update: a_kind_of(Integer), |