Browse Source

update bulk upload tests for new year

further-bulk-upload-year-fixes
Phil Lee 2 years ago
parent
commit
3e8b4e858c
  1. 4
      spec/requests/bulk_upload_lettings_logs_controller_spec.rb

4
spec/requests/bulk_upload_lettings_logs_controller_spec.rb

@ -10,10 +10,10 @@ RSpec.describe BulkUploadLettingsLogsController, type: :request do
describe "GET /lettings-logs/bulk-upload-logs/start" do
context "when not in crossover period" do
let(:expected_year) { 2021 }
let(:expected_year) { 2022 }
it "redirects to /prepare-your-file" do
Timecop.freeze(2022, 1, 1) do
Timecop.freeze(2023, 1, 1) do
get "/lettings-logs/bulk-upload-logs/start", params: {}
expect(response).to redirect_to("/lettings-logs/bulk-upload-logs/prepare-your-file?form%5Byear%5D=#{expected_year}")

Loading…
Cancel
Save