From 62ef986ee09f8f25d8bab72eca84e7d917dafe84 Mon Sep 17 00:00:00 2001 From: Yun Wang Date: Fri, 4 Dec 2026 18:34:39 +0100 Subject: [PATCH] test: read the poll option id as a string in the feed integration test StreamResponse#[] now returns the option's id, so calling .id on it raised NoMethodError and failed the regen integration run. --- spec/integration/feed_integration_spec.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/spec/integration/feed_integration_spec.rb b/spec/integration/feed_integration_spec.rb index f2c72fcf..6dd34d41 100644 --- a/spec/integration/feed_integration_spec.rb +++ b/spec/integration/feed_integration_spec.rb @@ -770,13 +770,12 @@ # Vote on poll if poll_response.poll.options && !poll_response.poll.options.empty? - option_id = poll_response.poll.options.first['id'] || poll_response.poll.options.first + option_id = poll_response.poll.options.first['id'] - puts option_id.inspect vote_request = GetStream::Generated::Models::CastPollVoteRequest.new( user_id: test_user_id_1, vote: GetStream::Generated::Models::VoteData.new( - option_id: option_id.id, + option_id: option_id, ), )