From 69933bb6f30feb1a117c10b07cc5c753740cca26 Mon Sep 17 00:00:00 2001 From: Kat Date: Fri, 16 Dec 2022 15:13:32 +0000 Subject: [PATCH] Add savings saof validation page to the income subsection --- app/models/form/sales/subsections/income_benefits_and_savings.rb | 1 + .../form/sales/subsections/income_benefits_and_savings_spec.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/app/models/form/sales/subsections/income_benefits_and_savings.rb b/app/models/form/sales/subsections/income_benefits_and_savings.rb index 9232b9318..346b6a628 100644 --- a/app/models/form/sales/subsections/income_benefits_and_savings.rb +++ b/app/models/form/sales/subsections/income_benefits_and_savings.rb @@ -19,6 +19,7 @@ class Form::Sales::Subsections::IncomeBenefitsAndSavings < ::Form::Subsection Form::Sales::Pages::Buyer2Mortgage.new(nil, nil, self), Form::Sales::Pages::MortgageValueCheck.new("buyer_2_mortgage_value_check", nil, self), Form::Sales::Pages::Savings.new(nil, nil, self), + Form::Sales::Pages::SavingsValueCheck.new("savings_value_check", nil, self), Form::Sales::Pages::PreviousOwnership.new(nil, nil, self), ] end diff --git a/spec/models/form/sales/subsections/income_benefits_and_savings_spec.rb b/spec/models/form/sales/subsections/income_benefits_and_savings_spec.rb index 02d58622a..ef24d065a 100644 --- a/spec/models/form/sales/subsections/income_benefits_and_savings_spec.rb +++ b/spec/models/form/sales/subsections/income_benefits_and_savings_spec.rb @@ -24,6 +24,7 @@ RSpec.describe Form::Sales::Subsections::IncomeBenefitsAndSavings, type: :model buyer_2_mortgage buyer_2_mortgage_value_check savings + savings_value_check previous_ownership ], )