Browse Source

test: fix deposit amount from 9_999_999 to 999_999

cldc-875-sales-validations-shared-ownership-cash-deposit-amount
Sam Seed 2 years ago
parent
commit
c1685d4b41
  1. 2
      app/models/form/sales/questions/deposit_amount.rb
  2. 2
      spec/models/form/sales/questions/deposit_amount_spec.rb

2
app/models/form/sales/questions/deposit_amount.rb

@ -7,7 +7,7 @@ class Form::Sales::Questions::DepositAmount < ::Form::Question
@type = "numeric"
@min = 0
@width = 5
@max = 9_999_999
@max = 999_999
@prefix = "£"
@hint_text = "Enter the total cash sum paid by the buyer towards the property that was not funded by the mortgage"
@derived = true

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

@ -48,6 +48,6 @@ RSpec.describe Form::Sales::Questions::DepositAmount, type: :model do
end
it "has correct max" do
expect(question.max).to eq(9_999_999)
expect(question.max).to eq(999_999)
end
end

Loading…
Cancel
Save