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) def initialize(id, hsh, page)
super super
@id = "mortgagelenderother" @id = "mortgagelenderother"
@check_answer_label = "Mortgage Lender" @check_answer_label = "Other Mortgage Lender"
@header = "Mortgage Lender" @header = "What is the other mortgage lender?"
@type = "text" @type = "text"
@page = page @page = page
end 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 end
it "has the correct header" do 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 end
it "has the correct check_answer_label" do 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 end
it "has the correct type" do it "has the correct type" do

Loading…
Cancel
Save