Skip to content

Commit

Permalink
Update content for date of vaccination inclusion error (#3106)
Browse files Browse the repository at this point in the history
This is the improved content that has been suggested by our content
designers.
  • Loading branch information
thomasleese authored Feb 27, 2025
2 parents c81575c + b89e49f commit bd74532
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 5 additions & 1 deletion spec/models/immunisation_import_row_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bd74532

Please sign in to comment.