|
|
|
|
@ -7,8 +7,8 @@ RSpec.describe Form::Sales::Pages::LaNominations, type: :model do
|
|
|
|
|
|
|
|
|
|
let(:page_id) { nil } |
|
|
|
|
let(:page_definition) { nil } |
|
|
|
|
let(:start_year_after_2024) { false } |
|
|
|
|
let(:form) { instance_double(Form, start_date: Time.zone.local(2023, 4, 1), start_year_2024_or_later?: start_year_after_2024) } |
|
|
|
|
let(:start_year_2024_or_later) { false } |
|
|
|
|
let(:form) { instance_double(Form, start_date: Time.zone.local(2023, 4, 1), start_year_2024_or_later?: start_year_2024_or_later) } |
|
|
|
|
let(:subsection) { instance_double(Form::Subsection, form:) } |
|
|
|
|
|
|
|
|
|
before do |
|
|
|
|
@ -32,7 +32,7 @@ RSpec.describe Form::Sales::Pages::LaNominations, type: :model do
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
context "with 23/24 log" do |
|
|
|
|
let(:start_year_after_2024) { false } |
|
|
|
|
let(:start_year_2024_or_later) { false } |
|
|
|
|
|
|
|
|
|
it "has correct routed to" do |
|
|
|
|
log.staircase = 1 |
|
|
|
|
@ -41,7 +41,7 @@ RSpec.describe Form::Sales::Pages::LaNominations, type: :model do
|
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
context "with 24/25 log" do |
|
|
|
|
let(:start_year_after_2024) { true } |
|
|
|
|
let(:start_year_2024_or_later) { true } |
|
|
|
|
|
|
|
|
|
it "has correct routed to when staircase is yes" do |
|
|
|
|
log.staircase = 1 |
|
|
|
|
|