From ff83d7c37071024707c17cb30955bfa92733466b Mon Sep 17 00:00:00 2001 From: Malaber Date: Tue, 14 Apr 2026 14:50:49 +0200 Subject: [PATCH] Fix follower sync E2E CI helper --- spec/e2e/http/tournament_follow_sync_spec.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/e2e/http/tournament_follow_sync_spec.rb b/spec/e2e/http/tournament_follow_sync_spec.rb index 65688a6..bcfb470 100644 --- a/spec/e2e/http/tournament_follow_sync_spec.rb +++ b/spec/e2e/http/tournament_follow_sync_spec.rb @@ -228,7 +228,9 @@ RSpec.describe 'Tournament follower sync HTTP E2E' do end def synced_team_id_pairs(source:, follower:) - source_by_name = source.fetch(:teams).index_by { |team| team.fetch(:name) } + source_by_name = source.fetch(:teams).each_with_object({}) do |team, teams_by_name| + teams_by_name[team.fetch(:name)] = team + end follower.fetch(:teams).filter_map do |team| source_team = source_by_name[team.fetch(:name)] next if source_team.nil?