|
|
|
|
@ -4,7 +4,8 @@ RSpec.describe Form::Sales::Pages::MultiplePartnersValueCheck, type: :model do
|
|
|
|
|
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) { 1 } |
|
|
|
|
|
|
|
|
|
let(:page_id) { "multiple_partners_value_check" } |
|
|
|
|
@ -39,7 +40,7 @@ RSpec.describe Form::Sales::Pages::MultiplePartnersValueCheck, type: :model do
|
|
|
|
|
|
|
|
|
|
it "has correct title_text" do |
|
|
|
|
expect(page.title_text).to eq({ |
|
|
|
|
"translation" => "soft_validations.multiple_partners_sales.title", |
|
|
|
|
"translation" => "forms.2024.sales.soft_validations.multiple_partners_value_check.title_text", |
|
|
|
|
"arguments" => [], |
|
|
|
|
}) |
|
|
|
|
end |
|
|
|
|
@ -71,7 +72,7 @@ RSpec.describe Form::Sales::Pages::MultiplePartnersValueCheck, type: :model do
|
|
|
|
|
|
|
|
|
|
it "has correct title_text" do |
|
|
|
|
expect(page.title_text).to eq({ |
|
|
|
|
"translation" => "soft_validations.multiple_partners_sales.title", |
|
|
|
|
"translation" => "forms.2024.sales.soft_validations.multiple_partners_value_check.title_text", |
|
|
|
|
"arguments" => [], |
|
|
|
|
}) |
|
|
|
|
end |
|
|
|
|
|