From d789d0318457fed451a9ff906a61edafc089d977 Mon Sep 17 00:00:00 2001 From: Nat Dean-Lewis Date: Fri, 13 Feb 2026 10:24:18 +0000 Subject: [PATCH] CLDC-4141: update question tests --- .../lead_tenant_sex_registered_at_birth_spec.rb | 2 +- .../person_sex_registered_at_birth_spec.rb | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/spec/models/form/lettings/questions/lead_tenant_sex_registered_at_birth_spec.rb b/spec/models/form/lettings/questions/lead_tenant_sex_registered_at_birth_spec.rb index ab778ece0..bdac0ddf9 100644 --- a/spec/models/form/lettings/questions/lead_tenant_sex_registered_at_birth_spec.rb +++ b/spec/models/form/lettings/questions/lead_tenant_sex_registered_at_birth_spec.rb @@ -44,7 +44,7 @@ RSpec.describe Form::Lettings::Questions::LeadTenantSexRegisteredAtBirth, type: end it "has the correct inferred_check_answers_value" do - expect(question.inferred_check_answers_value).to eq([{ "condition" => { "sexrab1" => "R" }, "value" => "Prefers not to say" }]) + expect(question.inferred_check_answers_value).to be_nil end it "has the correct question number" do 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 904814640..90f48cfda 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 @@ -49,7 +49,7 @@ RSpec.describe Form::Lettings::Questions::PersonSexRegisteredAtBirth, type: :mod end it "has the correct inferred_check_answers_value" do - expect(question.inferred_check_answers_value).to eq([{ "condition" => { "sexrab2" => "R" }, "value" => "Prefers not to say" }]) + expect(question.inferred_check_answers_value).to be_nil end it "has the correct question number" do @@ -70,7 +70,7 @@ RSpec.describe Form::Lettings::Questions::PersonSexRegisteredAtBirth, type: :mod end it "has the correct inferred_check_answers_value" do - expect(question.inferred_check_answers_value).to eq([{ "condition" => { "sexrab3" => "R" }, "value" => "Prefers not to say" }]) + expect(question.inferred_check_answers_value).to be_nil end it "has the correct question number" do @@ -91,7 +91,7 @@ RSpec.describe Form::Lettings::Questions::PersonSexRegisteredAtBirth, type: :mod end it "has the correct inferred_check_answers_value" do - expect(question.inferred_check_answers_value).to eq([{ "condition" => { "sexrab4" => "R" }, "value" => "Prefers not to say" }]) + expect(question.inferred_check_answers_value).to be_nil end it "has the correct question number" do @@ -112,7 +112,7 @@ RSpec.describe Form::Lettings::Questions::PersonSexRegisteredAtBirth, type: :mod end it "has the correct inferred_check_answers_value" do - expect(question.inferred_check_answers_value).to eq([{ "condition" => { "sexrab5" => "R" }, "value" => "Prefers not to say" }]) + expect(question.inferred_check_answers_value).to be_nil end it "has the correct question number" do @@ -133,7 +133,7 @@ RSpec.describe Form::Lettings::Questions::PersonSexRegisteredAtBirth, type: :mod end it "has the correct inferred_check_answers_value" do - expect(question.inferred_check_answers_value).to eq([{ "condition" => { "sexrab6" => "R" }, "value" => "Prefers not to say" }]) + expect(question.inferred_check_answers_value).to be_nil end it "has the correct question number" do @@ -154,7 +154,7 @@ RSpec.describe Form::Lettings::Questions::PersonSexRegisteredAtBirth, type: :mod end it "has the correct inferred_check_answers_value" do - expect(question.inferred_check_answers_value).to eq([{ "condition" => { "sexrab7" => "R" }, "value" => "Prefers not to say" }]) + expect(question.inferred_check_answers_value).to be_nil end it "has the correct question number" do @@ -175,7 +175,7 @@ RSpec.describe Form::Lettings::Questions::PersonSexRegisteredAtBirth, type: :mod end it "has the correct inferred_check_answers_value" do - expect(question.inferred_check_answers_value).to eq([{ "condition" => { "sexrab8" => "R" }, "value" => "Prefers not to say" }]) + expect(question.inferred_check_answers_value).to be_nil end it "has the correct question number" do