From 27c0ab8dee2fe32bbff7f8f9553bac7307ae82ef Mon Sep 17 00:00:00 2001 From: Samuel Young Date: Wed, 1 Oct 2025 09:59:47 +0100 Subject: [PATCH] CLDC-4086: Fix tests --- spec/models/validations/household_validations_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/models/validations/household_validations_spec.rb b/spec/models/validations/household_validations_spec.rb index f4e706bb8..f79f2c6e4 100644 --- a/spec/models/validations/household_validations_spec.rb +++ b/spec/models/validations/household_validations_spec.rb @@ -116,17 +116,17 @@ RSpec.describe Validations::HouseholdValidations do end context "when referral is not internal transfer" do - it "cannot be permanently decanted from another property owned by this landlord" do + it "can be permanently decanted from another property owned by this landlord" do record.reason = 1 record.referral_type = 1 record.referral = 2 household_validator.validate_reason_for_leaving_last_settled_home(record) expect(record.errors["reason"]) - .to include(match(I18n.t("validations.lettings.household.reason.leaving_last_settled_home.not_internal_transfer"))) + .to be_empty expect(record.errors["referral"]) - .to include(match(I18n.t("validations.lettings.household.referral.leaving_last_settled_home.reason_permanently_decanted"))) + .to be_empty expect(record.errors["referral_type"]) - .to include(match(I18n.t("validations.lettings.household.referral_type.leaving_last_settled_home.reason_permanently_decanted"))) + .to be_empty end end