From f455123afe170155256d3320b06c261b41096f33 Mon Sep 17 00:00:00 2001 From: natdeanlewissoftwire Date: Mon, 13 Mar 2023 15:37:24 +0000 Subject: [PATCH] feat: fix more tests --- spec/jobs/email_csv_job_spec.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/spec/jobs/email_csv_job_spec.rb b/spec/jobs/email_csv_job_spec.rb index 5ff0b3355..04776aac7 100644 --- a/spec/jobs/email_csv_job_spec.rb +++ b/spec/jobs/email_csv_job_spec.rb @@ -31,7 +31,9 @@ describe EmailCsvJob do FactoryBot.create(:lettings_log, :completed, created_by: user, - startdate: Time.zone.local(2021, 5, 1)) + startdate: Time.zone.local(2022, 5, 1), + voiddate: Time.zone.local(2022, 5, 1), + mrcdate: Time.zone.local(2022, 5, 1)) allow(Storage::S3Service).to receive(:new).and_return(storage_service) allow(storage_service).to receive(:write_file) @@ -104,7 +106,7 @@ describe EmailCsvJob do it "writes answer labels rather than values" do expect_csv do |csv| - expect(csv.second[16]).to eq("Full-time – 30 hours or more") + expect(csv.second[19]).to eq("Full-time – 30 hours or more") end job.perform(user)