Browse Source

Fix wheelchair question typo (#2259)

pull/2264/head
kosiakkatrina 10 months ago committed by GitHub
parent
commit
e372ce7de1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      app/models/form/sales/questions/property_wheelchair_accessible.rb
  2. 4
      spec/models/form/sales/questions/property_wheelchair_accessible_spec.rb

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

@ -2,8 +2,8 @@ class Form::Sales::Questions::PropertyWheelchairAccessible < ::Form::Question
def initialize(id, hsh, page) def initialize(id, hsh, page)
super super
@id = "wchair" @id = "wchair"
@check_answer_label = "Property build or adapted to wheelchair-user standards" @check_answer_label = "Property built or adapted to wheelchair-user standards"
@header = "Is the property build or adapted to wheelchair-user standards?" @header = "Is the property built or adapted to wheelchair-user standards?"
@type = "radio" @type = "radio"
@answer_options = ANSWER_OPTIONS @answer_options = ANSWER_OPTIONS
@question_number = 17 @question_number = 17

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

@ -22,11 +22,11 @@ RSpec.describe Form::Sales::Questions::PropertyWheelchairAccessible, type: :mode
end end
it "has the correct header" do it "has the correct header" do
expect(question.header).to eq("Is the property build or adapted to wheelchair-user standards?") expect(question.header).to eq("Is the property built or adapted to wheelchair-user standards?")
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("Property build or adapted to wheelchair-user standards") expect(question.check_answer_label).to eq("Property built or adapted to wheelchair-user standards")
end end
it "has the correct type" do it "has the correct type" do

Loading…
Cancel
Save