|
|
|
@ -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}") |
|
|
|
|