From cc93afa4861020b02a7314e96ace2216792c2918 Mon Sep 17 00:00:00 2001 From: Jack S <113976590+bibblobcode@users.noreply.github.com> Date: Tue, 27 Sep 2022 16:21:48 +0100 Subject: [PATCH] [CLDC-1484] Add prefer not to say to Age 1 question (#910) --- app/models/form/sales/questions/buyer1_age_known.rb | 1 + spec/models/form/sales/questions/buyer1_age_known_spec.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/app/models/form/sales/questions/buyer1_age_known.rb b/app/models/form/sales/questions/buyer1_age_known.rb index 6eff9bb1e..65e021815 100644 --- a/app/models/form/sales/questions/buyer1_age_known.rb +++ b/app/models/form/sales/questions/buyer1_age_known.rb @@ -16,5 +16,6 @@ class Form::Sales::Questions::Buyer1AgeKnown < ::Form::Question ANSWER_OPTIONS = { "0" => { "value" => "Yes" }, "1" => { "value" => "No" }, + "2" => { "value" => "Buyer prefers not to say" }, }.freeze end diff --git a/spec/models/form/sales/questions/buyer1_age_known_spec.rb b/spec/models/form/sales/questions/buyer1_age_known_spec.rb index c07fb5864..e1a97b7ef 100644 --- a/spec/models/form/sales/questions/buyer1_age_known_spec.rb +++ b/spec/models/form/sales/questions/buyer1_age_known_spec.rb @@ -35,6 +35,7 @@ RSpec.describe Form::Sales::Questions::Buyer1AgeKnown, type: :model do expect(question.answer_options).to eq({ "0" => { "value" => "Yes" }, "1" => { "value" => "No" }, + "2" => { "value" => "Buyer prefers not to say" }, }) end