Skip to content

Commit cb93a7b

Browse files
authored
Merge pull request #4544 from nhsuk/fix-singular-child-message-wording
Fix grammar in PSD eligibility message for singular case
2 parents c616638 + 4bab493 commit cb93a7b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

app/views/sessions/patient_specific_directions/show.html.erb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@
2323
<%= govuk_inset_text do %>
2424
<span class="nhsuk-u-visually-hidden">Information: </span>
2525
<p class="nhsuk-body">
26-
There are <%= @eligible_for_bulk_psd_count %> children with consent for the nasal flu vaccine
27-
who do not require triage and do not yet have a PSD in place.
26+
There <%= @eligible_for_bulk_psd_count == 1 ? "is" : "are" %>
27+
<%= pluralize(@eligible_for_bulk_psd_count, "child") %> with consent for
28+
the nasal flu vaccine who do not require triage and do not yet have a PSD in place.
2829
</p>
2930

3031
<% if policy(PatientSpecificDirection).create? %>

spec/features/flu_vaccination_hca_psd_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def and_the_injection_patient_should_have_psd_status_not_added
181181
end
182182

183183
def and_i_should_see_one_child_eligible_for_psd
184-
expect(page).to have_text("There are 1 children")
184+
expect(page).to have_text("There is 1 child")
185185
end
186186

187187
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
206206

207207
def and_i_should_only_see_one_child_eligible_for_bulk_adding_psd
208208
expect(page).to have_text(
209-
"There are 1 children with consent for the nasal flu vaccine"
209+
"There is 1 child with consent for the nasal flu vaccine"
210210
)
211211
end
212212

0 commit comments

Comments
 (0)