From 3a066a1c723bc3f1c0a30e579b6425e7b973a6f4 Mon Sep 17 00:00:00 2001 From: Manny Dinssa <44172848+Dinssa@users.noreply.github.com> Date: Mon, 7 Apr 2025 09:17:58 +0100 Subject: [PATCH] CLDC-3995: Answer option hh situation copy change (#3042) * copy fix * sofa surfing change * Update test * Update test --- app/models/form/lettings/questions/previous_tenure.rb | 4 ++-- spec/models/form/lettings/questions/previous_tenure_spec.rb | 4 ++-- spec/models/validations/household_validations_spec.rb | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/models/form/lettings/questions/previous_tenure.rb b/app/models/form/lettings/questions/previous_tenure.rb index c35d08d13..bf21f5b6d 100644 --- a/app/models/form/lettings/questions/previous_tenure.rb +++ b/app/models/form/lettings/questions/previous_tenure.rb @@ -49,8 +49,8 @@ class Form::Lettings::Questions::PreviousTenure < ::Form::Question "3" => { "value" => "Private sector tenancy" }, "27" => { "value" => "Owner occupation (low-cost home ownership)" }, "26" => { "value" => "Owner occupation (private)" }, - "28" => { "value" => "Living with friends and family (long-term)" }, - "39" => { "value" => "Sofa surfing (moving regularly between family and friends, no permanent bed)" }, + "28" => { "value" => "Living with friends or family (long-term)" }, + "39" => { "value" => "Sofa surfing (moving regularly between family or friends, no permanent bed)" }, "14" => { "value" => "Bed and breakfast" }, "7" => { "value" => "Direct access hostel" }, "10" => { "value" => "Hospital" }, diff --git a/spec/models/form/lettings/questions/previous_tenure_spec.rb b/spec/models/form/lettings/questions/previous_tenure_spec.rb index 1380d1b1f..4523848b2 100644 --- a/spec/models/form/lettings/questions/previous_tenure_spec.rb +++ b/spec/models/form/lettings/questions/previous_tenure_spec.rb @@ -70,8 +70,8 @@ RSpec.describe Form::Lettings::Questions::PreviousTenure, type: :model do "3" => { "value" => "Private sector tenancy" }, "27" => { "value" => "Owner occupation (low-cost home ownership)" }, "26" => { "value" => "Owner occupation (private)" }, - "28" => { "value" => "Living with friends and family (long-term)" }, - "39" => { "value" => "Sofa surfing (moving regularly between family and friends, no permanent bed)" }, + "28" => { "value" => "Living with friends or family (long-term)" }, + "39" => { "value" => "Sofa surfing (moving regularly between family or friends, no permanent bed)" }, "14" => { "value" => "Bed and breakfast" }, "7" => { "value" => "Direct access hostel" }, "10" => { "value" => "Hospital" }, diff --git a/spec/models/validations/household_validations_spec.rb b/spec/models/validations/household_validations_spec.rb index 2086e55f1..e761476ea 100644 --- a/spec/models/validations/household_validations_spec.rb +++ b/spec/models/validations/household_validations_spec.rb @@ -766,7 +766,7 @@ RSpec.describe Validations::HouseholdValidations do record.referral = 1 record.prevten = prevten[:code] household_validator.validate_previous_housing_situation(record) - label = record.form.start_year_2025_or_later? && prevten[:code] == 28 ? "Living with friends and family (long-term)" : prevten[:label] + label = record.form.start_year_2025_or_later? && prevten[:code] == 28 ? "Living with friends or family (long-term)" : prevten[:label] expect(record.errors["prevten"]) .to include(match I18n.t("validations.lettings.household.prevten.internal_transfer", prevten: label)) expect(record.errors["referral"])