Fix deprecations Ruby 2.7 several counter specs

parent 1c6af0e9
......@@ -41,11 +41,11 @@ RSpec.describe Gitlab::UsageDataCounters::EditorUniqueCounter, :clean_gitlab_red
context 'for web IDE edit actions' do
it_behaves_like 'tracks and counts action' do
def track_action(params)
described_class.track_web_ide_edit_action(params)
described_class.track_web_ide_edit_action(**params)
end
def count_unique(params)
described_class.count_web_ide_edit_actions(params)
described_class.count_web_ide_edit_actions(**params)
end
end
end
......@@ -53,11 +53,11 @@ RSpec.describe Gitlab::UsageDataCounters::EditorUniqueCounter, :clean_gitlab_red
context 'for SFE edit actions' do
it_behaves_like 'tracks and counts action' do
def track_action(params)
described_class.track_sfe_edit_action(params)
described_class.track_sfe_edit_action(**params)
end
def count_unique(params)
described_class.count_sfe_edit_actions(params)
described_class.count_sfe_edit_actions(**params)
end
end
end
......@@ -65,11 +65,11 @@ RSpec.describe Gitlab::UsageDataCounters::EditorUniqueCounter, :clean_gitlab_red
context 'for snippet editor edit actions' do
it_behaves_like 'tracks and counts action' do
def track_action(params)
described_class.track_snippet_editor_edit_action(params)
described_class.track_snippet_editor_edit_action(**params)
end
def count_unique(params)
described_class.count_snippet_editor_edit_actions(params)
described_class.count_snippet_editor_edit_actions(**params)
end
end
end
......
......@@ -8,11 +8,11 @@ RSpec.describe Gitlab::UsageDataCounters::TrackUniqueEvents, :clean_gitlab_redis
let(:time) { Time.zone.now }
def track_event(params)
track_unique_events.track_event(params)
track_unique_events.track_event(**params)
end
def count_unique(params)
track_unique_events.count_unique_events(params)
track_unique_events.count_unique_events(**params)
end
context 'tracking an event' do
......
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