Browse Source

copy change for black ethnicity question on lettings and sales (#1421)

pull/1451/head
Arthur Campbell 2 years ago committed by GitHub
parent
commit
f25f017466
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/models/form/lettings/questions/ethnic_black.rb
  2. 2
      app/models/form/sales/questions/buyer1_ethnic_background_black.rb
  3. 2
      app/models/form/sales/questions/buyer2_ethnic_background_black.rb
  4. 2
      config/forms/2021_2022.json
  5. 2
      config/forms/2022_2023.json
  6. 2
      spec/models/form/sales/questions/buyer1_ethnic_background_black_spec.rb
  7. 2
      spec/models/form/sales/questions/buyer2_ethnic_background_black_spec.rb

2
app/models/form/lettings/questions/ethnic_black.rb

@ -19,7 +19,7 @@ class Form::Lettings::Questions::EthnicBlack < ::Form::Question
"value" => "Caribbean", "value" => "Caribbean",
}, },
"14" => { "14" => {
"value" => "Any other Black, African or Caribbean background", "value" => "Any other Black, African, Caribbean or Black British background",
}, },
}.freeze }.freeze
end end

2
app/models/form/sales/questions/buyer1_ethnic_background_black.rb

@ -14,6 +14,6 @@ class Form::Sales::Questions::Buyer1EthnicBackgroundBlack < ::Form::Question
ANSWER_OPTIONS = { ANSWER_OPTIONS = {
"13" => { "value" => "African" }, "13" => { "value" => "African" },
"12" => { "value" => "Caribbean" }, "12" => { "value" => "Caribbean" },
"14" => { "value" => "Any other Black, African or Caribbean background" }, "14" => { "value" => "Any other Black, African, Caribbean or Black British background" },
}.freeze }.freeze
end end

2
app/models/form/sales/questions/buyer2_ethnic_background_black.rb

@ -13,6 +13,6 @@ class Form::Sales::Questions::Buyer2EthnicBackgroundBlack < ::Form::Question
ANSWER_OPTIONS = { ANSWER_OPTIONS = {
"13" => { "value" => "African" }, "13" => { "value" => "African" },
"12" => { "value" => "Caribbean" }, "12" => { "value" => "Caribbean" },
"14" => { "value" => "Any other Black, African or Caribbean background" }, "14" => { "value" => "Any other Black, African, Caribbean or Black British background" },
}.freeze }.freeze
end end

2
config/forms/2021_2022.json

@ -1639,7 +1639,7 @@
"value": "Caribbean" "value": "Caribbean"
}, },
"14": { "14": {
"value": "Any other Black, African or Caribbean background" "value": "Any other Black, African, Caribbean or Black British background"
} }
} }
} }

2
config/forms/2022_2023.json

@ -1671,7 +1671,7 @@
"value": "Caribbean" "value": "Caribbean"
}, },
"14": { "14": {
"value": "Any other Black, African or Caribbean background" "value": "Any other Black, African, Caribbean or Black British background"
} }
} }
} }

2
spec/models/form/sales/questions/buyer1_ethnic_background_black_spec.rb

@ -39,7 +39,7 @@ RSpec.describe Form::Sales::Questions::Buyer1EthnicBackgroundBlack, type: :model
expect(question.answer_options).to eq({ expect(question.answer_options).to eq({
"12" => { "value" => "Caribbean" }, "12" => { "value" => "Caribbean" },
"13" => { "value" => "African" }, "13" => { "value" => "African" },
"14" => { "value" => "Any other Black, African or Caribbean background" }, "14" => { "value" => "Any other Black, African, Caribbean or Black British background" },
}) })
end end

2
spec/models/form/sales/questions/buyer2_ethnic_background_black_spec.rb

@ -39,7 +39,7 @@ RSpec.describe Form::Sales::Questions::Buyer2EthnicBackgroundBlack, type: :model
expect(question.answer_options).to eq({ expect(question.answer_options).to eq({
"12" => { "value" => "Caribbean" }, "12" => { "value" => "Caribbean" },
"13" => { "value" => "African" }, "13" => { "value" => "African" },
"14" => { "value" => "Any other Black, African or Caribbean background" }, "14" => { "value" => "Any other Black, African, Caribbean or Black British background" },
}) })
end end

Loading…
Cancel
Save