From b5869f966d2cb71fea5adc2076e36a5565d98262 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Meny?= Date: Tue, 11 Jan 2022 14:05:09 +0000 Subject: [PATCH] CDLC-504: Cleanup logging and fix failing test on minimal earning --- app/models/validations/financial_validations.rb | 1 - spec/fixtures/complete_case_log.json | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/models/validations/financial_validations.rb b/app/models/validations/financial_validations.rb index bd3c8b3dd..e2b54bd5a 100644 --- a/app/models/validations/financial_validations.rb +++ b/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 diff --git a/spec/fixtures/complete_case_log.json b/spec/fixtures/complete_case_log.json index 1ed4d5206..785ddf9eb 100644 --- a/spec/fixtures/complete_case_log.json +++ b/spec/fixtures/complete_case_log.json @@ -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",