From b89e49fe7ee47e65c17fa6710d90ef10b572b078 Mon Sep 17 00:00:00 2001 From: Thomas Leese Date: Thu, 27 Feb 2025 16:05:27 +0000 Subject: [PATCH] Update content for date of vaccination inclusion error This is the improved content that has been suggested by our content designers. --- config/locales/en.yml | 2 +- spec/models/immunisation_import_row_spec.rb | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/config/locales/en.yml b/config/locales/en.yml index f333bdccd..621e87346 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -258,7 +258,7 @@ en: blank: Enter a date in the correct format greater_than: The vaccination date is before the date of birth less_than_or_equal_to: The vaccination date is in the future - inclusion: Enter a date for a current session + inclusion: Enter a date that matches when the vaccination session took place delivery_site: blank: Enter an anatomical site. inclusion: Enter a anatomical site that is appropriate for the vaccine. diff --git a/spec/models/immunisation_import_row_spec.rb b/spec/models/immunisation_import_row_spec.rb index 439495355..e6c82fc4a 100644 --- a/spec/models/immunisation_import_row_spec.rb +++ b/spec/models/immunisation_import_row_spec.rb @@ -211,7 +211,11 @@ let(:session) { create(:session, organisation:, programmes:) } - it { should include(/current session/) } + it do + expect(errors).to include( + "Enter a date that matches when the vaccination session took place" + ) + end end context "when importing without a session" do