Browse Source

CLDC-1878 Add hint to mortgage amount question (#1203)

pull/1178/head
Jack 2 years ago committed by GitHub
parent
commit
ced6457a19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      app/models/form/sales/questions/mortgage_amount.rb
  2. 2
      spec/models/form/sales/questions/mortgage_amount_spec.rb

1
app/models/form/sales/questions/mortgage_amount.rb

@ -8,5 +8,6 @@ class Form::Sales::Questions::MortgageAmount < ::Form::Question
@min = 0 @min = 0
@width = 5 @width = 5
@prefix = "£" @prefix = "£"
@hint_text = "Enter the amount of mortgage agreed with the mortgage lender. Exclude any deposits or cash payments. Numeric in pounds. Rounded to the nearest pound."
end end
end end

2
spec/models/form/sales/questions/mortgage_amount_spec.rb

@ -32,7 +32,7 @@ RSpec.describe Form::Sales::Questions::MortgageAmount, type: :model do
end end
it "has the correct hint" do it "has the correct hint" do
expect(question.hint_text).to be_nil expect(question.hint_text).to eq("Enter the amount of mortgage agreed with the mortgage lender. Exclude any deposits or cash payments. Numeric in pounds. Rounded to the nearest pound.")
end end
it "has correct width" do it "has correct width" do

Loading…
Cancel
Save