Browse Source

CDLC-504: Cleanup logging and fix failing test on minimal earning

pull/207/head
Stéphane Meny 3 years ago
parent
commit
b5869f966d
No known key found for this signature in database
GPG Key ID: 9D0AFEA988527923
  1. 1
      app/models/validations/financial_validations.rb
  2. 2
      spec/fixtures/complete_case_log.json

1
app/models/validations/financial_validations.rb

@ -31,7 +31,6 @@ module Validations::FinancialValidations
end
if record.weekly_net_income < record.applicable_income_range.hard_min
pp record
record.errors.add :earnings, "Net income cannot be less than #{record.applicable_income_range.hard_min} given the tenant's working situation"
end
end

2
spec/fixtures/complete_case_log.json vendored

@ -75,7 +75,7 @@
"offered": 2,
"wchair": "Yes",
"net_income_known": "Yes – the household has a weekly income",
"earnings": 0,
"earnings": 150,
"benefits": "Some",
"hb": "Universal Credit with housing element, but not Housing Benefit",
"period": "Fortnightly",

Loading…
Cancel
Save