From 0f4ed8a0c305d4d6370b660e275b42ff66947fe7 Mon Sep 17 00:00:00 2001 From: Malaber Date: Thu, 23 Apr 2026 12:50:17 +0200 Subject: [PATCH] fix: avoid rails array helper in websocket e2e --- spec/e2e/http/tournament_team_action_lists_websocket_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/e2e/http/tournament_team_action_lists_websocket_spec.rb b/spec/e2e/http/tournament_team_action_lists_websocket_spec.rb index f5bfda2..4e21fec 100644 --- a/spec/e2e/http/tournament_team_action_lists_websocket_spec.rb +++ b/spec/e2e/http/tournament_team_action_lists_websocket_spec.rb @@ -36,7 +36,7 @@ RSpec.describe 'Tournament team action lists websocket HTTP E2E' do expect(initial_payload.fetch('team_action_lists').first.fetch('key')).to eq('group_stage_survivor_playoff_tokens') first_item = token_list.fetch(:team_action_items).first - second_item = token_list.fetch(:team_action_items).second + second_item = token_list.fetch(:team_action_items)[1] update_by_item_id = client.patch("/team_action_items/#{first_item.fetch(:id)}", body: { completed: true }) expect(update_by_item_id[:status]).to eq(200)