Browse Source

content changes

pull/228/head
Kat 4 years ago
parent
commit
0a18423b92
  1. 4
      app/models/constants/case_log.rb
  2. 2
      app/models/validations/financial_validations.rb
  3. 14
      config/forms/2021_2022.json
  4. 2
      config/locales/en.yml
  5. 2
      spec/models/case_log_spec.rb

4
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,
"Dont 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,
"Dont know" => 4,
}.freeze
HAS_BENEFITS_OPTIONS = ["Housing benefit",

2
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 == "Dont know"
hb_none = record.hb == "None"
hb_uc_no_hb = record.hb == "Universal Credit (without housing element)"

14
config/forms/2021_2022.json

@ -1853,7 +1853,7 @@
"1": "Monthly",
"2": "Annually",
"divider_a": true,
"3": "Don't know",
"3": "Dont 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": "Dont 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 dont know the exact figure.",
"type": "numeric",
"min": 0,
"step": 1,
"width": 5,
"prefix": "£",
"suffix": "every month"
"suffix": " every month"
}
},
"depends_on": [{"has_benefits": "Yes",

2
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 dont 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:

2
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",

Loading…
Cancel
Save