Commit 83e19b75 authored by James Lopez's avatar James Lopez

refactor code

parent e44c3027
......@@ -6,12 +6,12 @@ module Gitlab
METRIC_NAME = :multi_file_editor_usage
def initialize(project, current_user, commit)
@project, @current_user, @commit = project, current_user, @commit = commit
@project, @current_user, @commit = project, current_user, commit
end
def record
::Gitlab::Metrics.counter(
METRIC_NAME,
METRIC_NAME,
'Total number of commits using the multi-file web editor',
metric_labels)
end
......
......@@ -23,7 +23,7 @@ describe Gitlab::Metrics::MultiFileEditor do
end
describe '.record' do
it 'records the right number of commit files' do
it 'records the right metrics' do
expect(::Gitlab::Metrics).to receive(:counter).with(*params)
subject.record
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment