Browse Source

CLDC-2137 Fix typos in previous tenure questions (#1416)

* test: update tests to fix typos

* fix: update answer opts to fix typos
pull/1403/head^2
SamSeed-Softwire 2 years ago committed by GitHub
parent
commit
cb983d16b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      app/models/form/sales/questions/buyer1_previous_tenure.rb
  2. 4
      app/models/form/sales/questions/previous_tenure_buyer2.rb
  3. 4
      spec/models/form/sales/questions/buyer1_previous_tenure_spec.rb
  4. 4
      spec/models/form/sales/questions/previous_tenure_buyer2_spec.rb

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

@ -10,13 +10,13 @@ class Form::Sales::Questions::Buyer1PreviousTenure < ::Form::Question
def answer_options def answer_options
{ {
"1" => { "value" => "Local Authority" }, "1" => { "value" => "Local authority tenant" },
"2" => { "value" => "Private registered provider or housing association tenant" }, "2" => { "value" => "Private registered provider or housing association tenant" },
"3" => { "value" => "Private tenant" }, "3" => { "value" => "Private tenant" },
"5" => { "value" => "Owner occupier" }, "5" => { "value" => "Owner occupier" },
"4" => { "value" => "Tied home or renting with job" }, "4" => { "value" => "Tied home or renting with job" },
"6" => { "value" => "Living with family or friends" }, "6" => { "value" => "Living with family or friends" },
"7" => { "value" => "Temporary accomodation" }, "7" => { "value" => "Temporary accommodation" },
"9" => { "value" => "Other" }, "9" => { "value" => "Other" },
"0" => { "value" => "Don’t know" }, "0" => { "value" => "Don’t know" },
} }

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

@ -10,13 +10,13 @@ class Form::Sales::Questions::PreviousTenureBuyer2 < ::Form::Question
end end
ANSWER_OPTIONS = { ANSWER_OPTIONS = {
"1" => { "value" => "Local Authority" }, "1" => { "value" => "Local authority tenant" },
"2" => { "value" => "Private registered provider or housing association tenant" }, "2" => { "value" => "Private registered provider or housing association tenant" },
"3" => { "value" => "Private tenant" }, "3" => { "value" => "Private tenant" },
"5" => { "value" => "Owner occupier" }, "5" => { "value" => "Owner occupier" },
"4" => { "value" => "Tied home or renting with job" }, "4" => { "value" => "Tied home or renting with job" },
"6" => { "value" => "Living with family or friends" }, "6" => { "value" => "Living with family or friends" },
"7" => { "value" => "Temporary accomodation" }, "7" => { "value" => "Temporary accommodation" },
"9" => { "value" => "Other" }, "9" => { "value" => "Other" },
"0" => { "value" => "Don't know" }, "0" => { "value" => "Don't know" },
}.freeze }.freeze

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

@ -32,13 +32,13 @@ RSpec.describe Form::Sales::Questions::Buyer1PreviousTenure, type: :model do
it "has the correct answer_options" do it "has the correct answer_options" do
expect(question.answer_options).to eq({ expect(question.answer_options).to eq({
"1" => { "value" => "Local Authority" }, "1" => { "value" => "Local authority tenant" },
"2" => { "value" => "Private registered provider or housing association tenant" }, "2" => { "value" => "Private registered provider or housing association tenant" },
"3" => { "value" => "Private tenant" }, "3" => { "value" => "Private tenant" },
"4" => { "value" => "Tied home or renting with job" }, "4" => { "value" => "Tied home or renting with job" },
"5" => { "value" => "Owner occupier" }, "5" => { "value" => "Owner occupier" },
"6" => { "value" => "Living with family or friends" }, "6" => { "value" => "Living with family or friends" },
"7" => { "value" => "Temporary accomodation" }, "7" => { "value" => "Temporary accommodation" },
"9" => { "value" => "Other" }, "9" => { "value" => "Other" },
"0" => { "value" => "Don’t know" }, "0" => { "value" => "Don’t know" },
}) })

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

@ -35,13 +35,13 @@ RSpec.describe Form::Sales::Questions::PreviousTenureBuyer2, type: :model do
it "has the correct answer_options" do it "has the correct answer_options" do
expect(question.answer_options).to eq({ expect(question.answer_options).to eq({
"1" => { "value" => "Local Authority" }, "1" => { "value" => "Local authority tenant" },
"2" => { "value" => "Private registered provider or housing association tenant" }, "2" => { "value" => "Private registered provider or housing association tenant" },
"3" => { "value" => "Private tenant" }, "3" => { "value" => "Private tenant" },
"5" => { "value" => "Owner occupier" }, "5" => { "value" => "Owner occupier" },
"4" => { "value" => "Tied home or renting with job" }, "4" => { "value" => "Tied home or renting with job" },
"6" => { "value" => "Living with family or friends" }, "6" => { "value" => "Living with family or friends" },
"7" => { "value" => "Temporary accomodation" }, "7" => { "value" => "Temporary accommodation" },
"9" => { "value" => "Other" }, "9" => { "value" => "Other" },
"0" => { "value" => "Don't know" }, "0" => { "value" => "Don't know" },
}) })

Loading…
Cancel
Save