diff --git a/app/views/sessions/patient_specific_directions/show.html.erb b/app/views/sessions/patient_specific_directions/show.html.erb index 62dca87a94..11af22b415 100644 --- a/app/views/sessions/patient_specific_directions/show.html.erb +++ b/app/views/sessions/patient_specific_directions/show.html.erb @@ -23,8 +23,9 @@ <%= govuk_inset_text do %> Information:
- There are <%= @eligible_for_bulk_psd_count %> children with consent for the nasal flu vaccine - who do not require triage and do not yet have a PSD in place. + There <%= @eligible_for_bulk_psd_count == 1 ? "is" : "are" %> + <%= pluralize(@eligible_for_bulk_psd_count, "child") %> with consent for + the nasal flu vaccine who do not require triage and do not yet have a PSD in place.
<% if policy(PatientSpecificDirection).create? %> diff --git a/spec/features/flu_vaccination_hca_psd_spec.rb b/spec/features/flu_vaccination_hca_psd_spec.rb index 208c21c161..3f874c99fc 100644 --- a/spec/features/flu_vaccination_hca_psd_spec.rb +++ b/spec/features/flu_vaccination_hca_psd_spec.rb @@ -181,7 +181,7 @@ def and_the_injection_patient_should_have_psd_status_not_added end def and_i_should_see_one_child_eligible_for_psd - expect(page).to have_text("There are 1 children") + expect(page).to have_text("There is 1 child") end def and_should_see_again_one_child_eligible_for_psd @@ -206,7 +206,7 @@ def then_i_should_not_see_link_to_bulk_add_psds def and_i_should_only_see_one_child_eligible_for_bulk_adding_psd expect(page).to have_text( - "There are 1 children with consent for the nasal flu vaccine" + "There is 1 child with consent for the nasal flu vaccine" ) end