From fa8634c36caff373544b5ddcc0e96f8de194366f Mon Sep 17 00:00:00 2001 From: Kat Date: Fri, 24 Feb 2023 16:44:39 +0000 Subject: [PATCH] Add purchase price numbering --- app/models/form/sales/questions/purchase_price.rb | 2 +- .../form/sales/questions/purchase_price_outright_ownership.rb | 2 +- app/models/form/sales/questions/value.rb | 2 +- spec/models/form/sales/questions/purchase_price_spec.rb | 2 +- spec/models/form/sales/questions/value_spec.rb | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/models/form/sales/questions/purchase_price.rb b/app/models/form/sales/questions/purchase_price.rb index 6242e45e8..736c6d87f 100644 --- a/app/models/form/sales/questions/purchase_price.rb +++ b/app/models/form/sales/questions/purchase_price.rb @@ -3,7 +3,7 @@ class Form::Sales::Questions::PurchasePrice < ::Form::Question super @id = "value" @check_answer_label = "Purchase price" - @header = "What is the full purchase price?" + @header = "Q100 - What is the full purchase price?" @type = "numeric" @min = 0 @width = 5 diff --git a/app/models/form/sales/questions/purchase_price_outright_ownership.rb b/app/models/form/sales/questions/purchase_price_outright_ownership.rb index 9824a4629..e61194e38 100644 --- a/app/models/form/sales/questions/purchase_price_outright_ownership.rb +++ b/app/models/form/sales/questions/purchase_price_outright_ownership.rb @@ -3,7 +3,7 @@ class Form::Sales::Questions::PurchasePriceOutrightOwnership < ::Form::Question super @id = "value" @check_answer_label = "Purchase price" - @header = "What is the full purchase price?" + @header = "Q110 - What is the full purchase price?" @type = "numeric" @min = 0 @width = 5 diff --git a/app/models/form/sales/questions/value.rb b/app/models/form/sales/questions/value.rb index 24e20e5ca..13ce82252 100644 --- a/app/models/form/sales/questions/value.rb +++ b/app/models/form/sales/questions/value.rb @@ -3,7 +3,7 @@ class Form::Sales::Questions::Value < ::Form::Question super @id = "value" @check_answer_label = "Full purchase price" - @header = "What was the full purchase price?" + @header = "Q88 - What was the full purchase price?" @type = "numeric" @min = 0 @width = 5 diff --git a/spec/models/form/sales/questions/purchase_price_spec.rb b/spec/models/form/sales/questions/purchase_price_spec.rb index ce0aaae9c..abb29983b 100644 --- a/spec/models/form/sales/questions/purchase_price_spec.rb +++ b/spec/models/form/sales/questions/purchase_price_spec.rb @@ -16,7 +16,7 @@ RSpec.describe Form::Sales::Questions::PurchasePrice, type: :model do end it "has the correct header" do - expect(question.header).to eq("What is the full purchase price?") + expect(question.header).to eq("Q100 - What is the full purchase price?") end it "has the correct check_answer_label" do diff --git a/spec/models/form/sales/questions/value_spec.rb b/spec/models/form/sales/questions/value_spec.rb index f9da45db0..d05765866 100644 --- a/spec/models/form/sales/questions/value_spec.rb +++ b/spec/models/form/sales/questions/value_spec.rb @@ -16,7 +16,7 @@ RSpec.describe Form::Sales::Questions::Value, type: :model do end it "has the correct header" do - expect(question.header).to eq("What was the full purchase price?") + expect(question.header).to eq("Q88 - What was the full purchase price?") end it "has the correct check_answer_label" do