|
|
|
|
@ -4,7 +4,8 @@ RSpec.describe Form::Sales::Pages::PersonStudentNotChildValueCheck, type: :model
|
|
|
|
|
subject(:page) { described_class.new(page_id, page_definition, subsection, person_index:) } |
|
|
|
|
|
|
|
|
|
let(:page_definition) { nil } |
|
|
|
|
let(:subsection) { instance_double(Form::Subsection) } |
|
|
|
|
let(:form) { instance_double(Form, start_date: Time.zone.local(2024, 4, 1)) } |
|
|
|
|
let(:subsection) { instance_double(Form::Subsection, form:) } |
|
|
|
|
let(:person_index) { 2 } |
|
|
|
|
|
|
|
|
|
let(:page_id) { "person_2_student_not_child_value_check" } |
|
|
|
|
@ -23,7 +24,7 @@ RSpec.describe Form::Sales::Pages::PersonStudentNotChildValueCheck, type: :model
|
|
|
|
|
|
|
|
|
|
it "has correct title_text" do |
|
|
|
|
expect(page.title_text).to eq({ |
|
|
|
|
"translation" => "soft_validations.student_not_child.title_text", |
|
|
|
|
"translation" => "forms.2024.sales.soft_validations.student_not_child_value_check.title_text", |
|
|
|
|
}) |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
|