Browse Source

tests: test tweaks

pull/1113/head
natdeanlewissoftwire 4 years ago
parent
commit
c14648f288
  1. 2
      app/models/form/sales/questions/deposit_discount.rb
  2. 2
      spec/models/form/sales/questions/deposit_discount_spec.rb

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

@ -9,6 +9,6 @@ class Form::Sales::Questions::DepositDiscount < ::Form::Question
@min = 0
@width = 5
@prefix = "£"
@hint_text = " Enter the total cash discount given on the property being purchased through the Social HomeBuy scheme"
@hint_text = "Enter the total cash discount given on the property being purchased through the Social HomeBuy scheme"
end
end

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

@ -20,7 +20,7 @@ RSpec.describe Form::Sales::Questions::DepositDiscount, type: :model do
end
it "has the correct check_answer_label" do
expect(question.check_answer_label).to eq("Monthly rent")
expect(question.check_answer_label).to eq("Cash discount through SocialHomeBuy")
end
it "has the correct type" do

Loading…
Cancel
Save