diff --git a/spec/models/form_spec.rb b/spec/models/form_spec.rb index f413e6a7e..3f5b38b91 100644 --- a/spec/models/form_spec.rb +++ b/spec/models/form_spec.rb @@ -372,7 +372,7 @@ RSpec.describe Form, type: :model do expect(form.questions.first.id).to eq("owning_organisation_id") expect(form.start_date).to eq(Time.zone.parse("2022-04-01")) expect(form.new_logs_end_date).to eq(Time.zone.parse("2023-08-07")) - expect(form.edit_end_date).to eq(Time.zone.parse("2023-08-07")) + expect(form.edit_end_date).to eq(Time.zone.parse("2023-10-07")) expect(form.submission_deadline).to eq(Time.zone.parse("2023-06-09")) expect(form.unresolved_log_redirect_page_id).to eq(nil) end diff --git a/spec/requests/form_controller_spec.rb b/spec/requests/form_controller_spec.rb index f8be6edff..1e10a4c91 100644 --- a/spec/requests/form_controller_spec.rb +++ b/spec/requests/form_controller_spec.rb @@ -32,6 +32,7 @@ RSpec.describe FormController, type: :request do before do allow(fake_2021_2022_form).to receive(:new_logs_end_date).and_return(Time.zone.today + 1.day) + allow(fake_2021_2022_form).to receive(:edit_end_date).and_return(Time.zone.today + 2.months) allow(FormHandler.instance).to receive(:current_lettings_form).and_return(fake_2021_2022_form) end @@ -764,6 +765,7 @@ RSpec.describe FormController, type: :request do completed_lettings_log.update!(ecstat1: 1, earnings: 130, hhmemb: 1) # we're not routing to that page, so it gets cleared? allow(completed_lettings_log).to receive(:net_income_soft_validation_triggered?).and_return(true) allow(completed_lettings_log.form).to receive(:new_logs_end_date).and_return(Time.zone.today + 1.day) + allow(completed_lettings_log.form).to receive(:edit_end_date).and_return(Time.zone.today + 2.months) post "/lettings-logs/#{completed_lettings_log.id}/net-income-value-check", params: interrupt_params, headers: headers.merge({ "HTTP_REFERER" => referrer }) end