Browse Source

feat: fix typo (#1504)

new-year-bulk-fixes
natdeanlewissoftwire 2 years ago committed by GitHub
parent
commit
69f4be789d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/models/form/sales/questions/buyer2_ethnic_group.rb
  2. 2
      spec/models/form/sales/questions/buyer2_ethnic_group_spec.rb

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

@ -23,6 +23,6 @@ class Form::Sales::Questions::Buyer2EthnicGroup < ::Form::Question
"3" => { "value" => "Black, African, Caribbean or Black British" }, "3" => { "value" => "Black, African, Caribbean or Black British" },
"4" => { "value" => "Arab or other ethnic group" }, "4" => { "value" => "Arab or other ethnic group" },
"divider" => { "value" => true }, "divider" => { "value" => true },
"17" => { "value" => "Buyer 1 prefers not to say" }, "17" => { "value" => "Buyer 2 prefers not to say" },
}.freeze }.freeze
end end

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

@ -39,7 +39,7 @@ RSpec.describe Form::Sales::Questions::Buyer2EthnicGroup, type: :model do
expect(question.answer_options).to eq({ expect(question.answer_options).to eq({
"0" => { "value" => "White" }, "0" => { "value" => "White" },
"1" => { "value" => "Mixed or Multiple ethnic groups" }, "1" => { "value" => "Mixed or Multiple ethnic groups" },
"17" => { "value" => "Buyer 1 prefers not to say" }, "17" => { "value" => "Buyer 2 prefers not to say" },
"2" => { "value" => "Asian or Asian British" }, "2" => { "value" => "Asian or Asian British" },
"3" => { "value" => "Black, African, Caribbean or Black British" }, "3" => { "value" => "Black, African, Caribbean or Black British" },
"4" => { "value" => "Arab or other ethnic group" }, "4" => { "value" => "Arab or other ethnic group" },

Loading…
Cancel
Save