error_description="We created logs from your #{bulk_upload.year_combo}#{bulk_upload.log_type} data. There was a problem with #{count} of the logs. Click the below link to fix these logs."
@ -8,5 +8,6 @@ class Form::Sales::Questions::PurchasePrice < ::Form::Question
@min=0
@width=5
@prefix="£"
@hint_text="For all schemes, including Right to Acquire (RTA), Right to Buy (RTB), Voluntary Right to Buy (VRTB) or Preserved Right to Buy (PRTB) sales, enter the full price of the property without any discount"
"header":"This rent is lower than expected for this property type, in this area. Check:",
"hint_text":"<ul><li>the decimal point is not missing (£X.XX)</li><li>the frequency is correct, for example weekly, monthly</li><li>the rent type is correct, for example affordable or social rent</li></ul><p>Are you sure this is correct?</p>",
"header":"This rent is higher than expected for this property type, in this area. Check:",
"hint_text":"<ul><li>the decimal point is not missing (£X.XX)</li><li>the frequency is correct, for example weekly, monthly</li><li>the rent type is correct, for example affordable or social rent</li></ul><p>Are you sure this is correct?</p>",
@ -32,7 +32,9 @@ RSpec.describe Form::Sales::Questions::PurchasePrice, type: :model do
end
it"has the correct hint"do
expect(question.hint_text).tobe_nil
expect(question.hint_text).toeq(
"For all schemes, including Right to Acquire (RTA), Right to Buy (RTB), Voluntary Right to Buy (VRTB) or Preserved Right to Buy (PRTB) sales, enter the full price of the property without any discount",
expect(sales_record.errors["savings"]).toinclude(matchI18n.t("validations.numeric.above_min",field:"Buyer’s total savings (to nearest £10) before any deposit paid",min:"£0"))
end
context"when validating percent"do
it"validates that suffixes are added in the error message"do