Browse Source

update question wording

pull/1532/head
Kat 3 years ago
parent
commit
f0d2a97a91
  1. 4
      app/models/form/sales/questions/has_leasehold_charges.rb
  2. 4
      spec/models/form/sales/questions/has_leasehold_charges_spec.rb

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

@ -2,8 +2,8 @@ class Form::Sales::Questions::HasLeaseholdCharges < ::Form::Question
def initialize(id, hsh, subsection, ownershipsch:) def initialize(id, hsh, subsection, ownershipsch:)
super(id, hsh, subsection) super(id, hsh, subsection)
@id = "has_mscharge" @id = "has_mscharge"
@check_answer_label = "Monthly leasehold charges known?" @check_answer_label = "Does the property have any monthly leasehold charges?"
@header = "Do you know the monthly leasehold charges for the property?" @header = "Does the property have any monthly leasehold charges?"
@hint_text = "For example, service and management charges" @hint_text = "For example, service and management charges"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS

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

@ -16,11 +16,11 @@ RSpec.describe Form::Sales::Questions::HasLeaseholdCharges, type: :model do
end end
it "has the correct header" do it "has the correct header" do
expect(question.header).to eq("Do you know the monthly leasehold charges for the property?") expect(question.header).to eq("Does the property have any monthly leasehold charges?")
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("Monthly leasehold charges known?") expect(question.check_answer_label).to eq("Does the property have any monthly leasehold charges?")
end end
it "has the correct type" do it "has the correct type" do

Loading…
Cancel
Save