|
|
|
|
@ -8,7 +8,7 @@ RSpec.describe Form::Lettings::Questions::Wheelchair, type: :model do
|
|
|
|
|
|
|
|
|
|
before do |
|
|
|
|
allow(page).to receive(:subsection).and_return(subsection) |
|
|
|
|
allow(subsection).to receive(:form).and_return(instance_double(Form, start_year_after_2024?: false)) |
|
|
|
|
allow(subsection).to receive(:form).and_return(instance_double(Form, start_year_after_2024?: false, start_date: Time.zone.local(2023, 4, 1))) |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it "has correct page" do |
|
|
|
|
@ -48,7 +48,7 @@ RSpec.describe Form::Lettings::Questions::Wheelchair, type: :model do
|
|
|
|
|
|
|
|
|
|
context "with 2024 form" do |
|
|
|
|
before do |
|
|
|
|
allow(subsection).to receive(:form).and_return(instance_double(Form, start_year_after_2024?: true)) |
|
|
|
|
allow(subsection).to receive(:form).and_return(instance_double(Form, start_year_after_2024?: true, start_date: Time.zone.local(2024, 4, 1))) |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
it "has the correct hint_text" do |
|
|
|
|
|