|
|
|
@ -16,7 +16,7 @@ RSpec.describe Validations::Sales::FinancialValidations do
|
|
|
|
|
record.ecstat1 = ecstat |
|
|
|
|
financial_validator.validate_income1(record) |
|
|
|
|
expect(record.errors["income1"]) |
|
|
|
|
.to include(match I18n.t("validations.financial.income1.over_hard_max", hard_max: 80_000)) |
|
|
|
|
.to include(match I18n.t("validations.financial.income1.over_hard_max.outside_london")) |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|
|
|
|
@ -40,7 +40,7 @@ RSpec.describe Validations::Sales::FinancialValidations do
|
|
|
|
|
record.ecstat1 = ecstat |
|
|
|
|
financial_validator.validate_income1(record) |
|
|
|
|
expect(record.errors["income1"]) |
|
|
|
|
.to include(match I18n.t("validations.financial.income1.over_hard_max", hard_max: 90_000)) |
|
|
|
|
.to include(match I18n.t("validations.financial.income1.over_hard_max.inside_london")) |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|