diff --git a/app/models/constants/case_log.rb b/app/models/constants/case_log.rb index db4c8aa9d..c4eab5674 100644 --- a/app/models/constants/case_log.rb +++ b/app/models/constants/case_log.rb @@ -233,7 +233,7 @@ module Constants::CaseLog "Universal Credit (without housing element)" => 7, "Housing benefit and Universal Credit (without housing element)" => 8, "None" => 9, - "Don't know" => 3, + "Don’t know" => 3, "Tenant prefers not to say" => 100, }.freeze @@ -1075,7 +1075,7 @@ module Constants::CaseLog "Monthly" => 1, "Annually" => 2, "Tenant prefers not to say" => 3, - "Don't know" => 4, + "Don’t know" => 4, }.freeze HAS_BENEFITS_OPTIONS = ["Housing benefit", diff --git a/app/models/validations/financial_validations.rb b/app/models/validations/financial_validations.rb index fa05c3896..048957acf 100644 --- a/app/models/validations/financial_validations.rb +++ b/app/models/validations/financial_validations.rb @@ -34,7 +34,7 @@ module Validations::FinancialValidations def validate_tshortfall(record) is_yes = record.hbrentshortfall == "Yes" - hb_donotknow = record.hb == "Don't know" + hb_donotknow = record.hb == "Don’t know" hb_none = record.hb == "None" hb_uc_no_hb = record.hb == "Universal Credit (without housing element)" diff --git a/config/forms/2021_2022.json b/config/forms/2021_2022.json index 6da00789f..9c88438a4 100644 --- a/config/forms/2021_2022.json +++ b/config/forms/2021_2022.json @@ -1853,7 +1853,7 @@ "1": "Monthly", "2": "Annually", "divider_a": true, - "3": "Don't know", + "3": "Don’t know", "4": "Tenant prefers not to say" } } @@ -1956,7 +1956,7 @@ "3": "Universal Credit (without housing element)", "4": "None", "divider": true, - "5": "Don't know", + "5": "Don’t know", "6": "Tenant prefers not to say" } } @@ -2128,7 +2128,7 @@ "type": "numeric", "width": 5, "prefix": "£", - "suffix": "every 2 weeks" + "suffix": " every 2 weeks" } }, "depends_on" : [{ @@ -2165,7 +2165,7 @@ "type": "numeric", "width": 5, "prefix": "£", - "suffix": "every 4 weeks" + "suffix": " every 4 weeks" } }, "depends_on" : [{ @@ -2202,7 +2202,7 @@ "type": "numeric", "width": 5, "prefix": "£", - "suffix": "month" + "suffix": " every month" } }, "depends_on" : [{ @@ -2693,13 +2693,13 @@ "tshortfall": { "check_answer_label": "Estimated outstanding amount", "header": "What do you expect the amount to be?", - "hint_text": "Give an estimated amount if you don't know the exact figure.", + "hint_text": "Give an estimated amount if you don’t know the exact figure.", "type": "numeric", "min": 0, "step": 1, "width": 5, "prefix": "£", - "suffix": "every month" + "suffix": " every month" } }, "depends_on": [{"has_benefits": "Yes", diff --git a/config/locales/en.yml b/config/locales/en.yml index d0c20ef64..3b7f95796 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -58,7 +58,7 @@ en: financial: tshortfall: - outstanding_amount_not_required: "You must not answer the outstanding amount question if you don't have outstanding rent or charges." + outstanding_amount_not_required: "You must not answer the outstanding amount question if you don’t have outstanding rent or charges." hbrentshortfall: outstanding_no_benefits: "Outstanding amount for basic rent and/or benefit eligible charges can not be 'Yes' if tenant is not in receipt of housing benefit or universal benefit or if benefit is unknown" benefits: diff --git a/spec/models/case_log_spec.rb b/spec/models/case_log_spec.rb index 6c339650b..42c76ecf5 100644 --- a/spec/models/case_log_spec.rb +++ b/spec/models/case_log_spec.rb @@ -123,7 +123,7 @@ RSpec.describe Form, type: :model do end context "reason for leaving last settled home validation" do - it "Reason for leaving must be don't know if reason for leaving settled home (Q9a) is don't know." do + it "Reason for leaving must be don’t know if reason for leaving settled home (Q9a) is don’t know." do expect { CaseLog.create!(reason: "Don’t know", underoccupation_benefitcap: "Yes - benefit cap",