diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-12-16 06:16:18 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-12-16 06:16:18 +0300 |
commit | 555976016b899c8507cd58196e6c9f647fa6b19e (patch) | |
tree | 625368df60c700c5bc8bec2520b3524cfe42da00 /spec | |
parent | 84025108bca604c1428d2cf6a6b69616ee90956c (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/gitlab/tracking/event_definition_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/gitlab/tracking/event_definition_spec.rb b/spec/lib/gitlab/tracking/event_definition_spec.rb index 3f78efef0f8..5e41c691da8 100644 --- a/spec/lib/gitlab/tracking/event_definition_spec.rb +++ b/spec/lib/gitlab/tracking/event_definition_spec.rb @@ -37,7 +37,7 @@ RSpec.describe Gitlab::Tracking::EventDefinition do it 'has no duplicated actions in InternalEventTracking events', :aggregate_failures do definitions_by_action = described_class.definitions - .each_value.select { |d| d.category == 'InternalEventTracking' } + .select { |d| d.category == 'InternalEventTracking' } .group_by(&:action) definitions_by_action.each do |action, definitions| @@ -54,7 +54,7 @@ RSpec.describe Gitlab::Tracking::EventDefinition do .compact .uniq - event_names = Gitlab::Tracking::EventDefinition.definitions.values.map { |e| e.attributes[:action] } + event_names = Gitlab::Tracking::EventDefinition.definitions.map { |e| e.attributes[:action] } from_metric_definitions.each do |event| expect(event_names).to include(event), |