Browse Source

Set 2024 date in form_handler_spec to be during crossover period as needed

pull/2509/head
Rachael Booth 2 years ago
parent
commit
ebb1d58dce
  1. 4
      spec/models/form_handler_spec.rb

4
spec/models/form_handler_spec.rb

@ -246,8 +246,8 @@ RSpec.describe FormHandler do
end end
end end
context "when only archived form form is defined in JSON (current collection start year 2024 onwards)" do # TODO: CLDC-3505 remove this test on year hard end context "when only archived form is defined in JSON (current collection start year 2024 onwards)" do
let(:now) { Time.utc(2024, 9, 20) } let(:now) { Time.utc(2024, 5, 20) }
it "creates previous_lettings, current_lettings and next_lettings forms from ruby form objects and archived form from json" do it "creates previous_lettings, current_lettings and next_lettings forms from ruby form objects and archived form from json" do
expect(form_handler.lettings_forms["archived_lettings"]).to be_present expect(form_handler.lettings_forms["archived_lettings"]).to be_present

Loading…
Cancel
Save