From 10fb71e2e312f083836f86d5632f686573620b0b Mon Sep 17 00:00:00 2001 From: Rachael Booth Date: Wed, 17 Jul 2024 12:00:38 +0100 Subject: [PATCH] Use year combo function in bulk upload mailer tests --- spec/mailers/bulk_upload_mailer_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/mailers/bulk_upload_mailer_spec.rb b/spec/mailers/bulk_upload_mailer_spec.rb index f26da1efb..c3225c937 100644 --- a/spec/mailers/bulk_upload_mailer_spec.rb +++ b/spec/mailers/bulk_upload_mailer_spec.rb @@ -46,7 +46,7 @@ RSpec.describe BulkUploadMailer do filename: bulk_upload.filename, log_type: "lettings", upload_timestamp: bulk_upload.created_at.to_fs(:govuk_date_and_time), - success_description: "The lettings 2023/24 data you uploaded has been checked. The 0 logs you uploaded are now complete.", + success_description: "The lettings #{bulk_upload.year_combo} data you uploaded has been checked. The 0 logs you uploaded are now complete.", logs_link: clear_filters_url(filter_type: "lettings_logs"), }, ) @@ -113,7 +113,7 @@ RSpec.describe BulkUploadMailer do title: "Check your file data", filename: bulk_upload.filename, upload_timestamp: bulk_upload.created_at.to_fs(:govuk_date_and_time), - description: "Some of your 2023/24 lettings data might not be right. Click the link below to review the potential errors, and check your file to see if the data is correct.", + description: "Some of your #{bulk_upload.year_combo} lettings data might not be right. Click the link below to review the potential errors, and check your file to see if the data is correct.", cta_link: bulk_upload_lettings_soft_validations_check_url(bulk_upload, page: "confirm-soft-errors"), }, )