From b1df82553586dd37b9260337aaadcf07ac37ca12 Mon Sep 17 00:00:00 2001 From: Samuel Young Date: Thu, 12 Feb 2026 16:28:23 +0000 Subject: [PATCH] fixup! CLDC-4202: Use form person question count on sexrab update test --- .../lettings/questions/person_sex_registered_at_birth_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/models/form/lettings/questions/person_sex_registered_at_birth_spec.rb b/spec/models/form/lettings/questions/person_sex_registered_at_birth_spec.rb index 90f48cfda..afa6e59a7 100644 --- a/spec/models/form/lettings/questions/person_sex_registered_at_birth_spec.rb +++ b/spec/models/form/lettings/questions/person_sex_registered_at_birth_spec.rb @@ -8,7 +8,7 @@ RSpec.describe Form::Lettings::Questions::PersonSexRegisteredAtBirth, type: :mod let(:page) { instance_double(Form::Page) } let(:person_index) { 2 } let(:subsection) { instance_double(Form::Subsection) } - let(:form) { instance_double(Form, start_date: Time.zone.local(2026, 4, 1)) } + let(:form) { instance_double(Form, start_date: Time.zone.local(2026, 4, 1), person_question_count: 5) } before do allow(page).to receive(:subsection).and_return(subsection)