Browse Source

Update mortgage lender other question

pull/1164/head
Kat 3 years ago
parent
commit
b01131053e
  1. 4
      app/models/form/sales/questions/mortgage_lender_other.rb
  2. 4
      spec/models/form/sales/questions/mortgage_lender_other_spec.rb

4
app/models/form/sales/questions/mortgage_lender_other.rb

@ -2,8 +2,8 @@ class Form::Sales::Questions::MortgageLenderOther < ::Form::Question
def initialize(id, hsh, page)
super
@id = "mortgagelenderother"
@check_answer_label = "Mortgage Lender"
@header = "Mortgage Lender"
@check_answer_label = "Other Mortgage Lender"
@header = "What is the other mortgage lender?"
@type = "text"
@page = page
end

4
spec/models/form/sales/questions/mortgage_lender_other_spec.rb

@ -16,11 +16,11 @@ RSpec.describe Form::Sales::Questions::MortgageLenderOther, type: :model do
end
it "has the correct header" do
expect(question.header).to eq("Mortgage Lender")
expect(question.header).to eq("What is the other mortgage lender?")
end
it "has the correct check_answer_label" do
expect(question.check_answer_label).to eq("Mortgage Lender")
expect(question.check_answer_label).to eq("Other Mortgage Lender")
end
it "has the correct type" do

Loading…
Cancel
Save