|
|
|
@ -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 |
|
|
|
|
|
|
|
|
|