Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@
<%= govuk_inset_text do %>
<span class="nhsuk-u-visually-hidden">Information: </span>
<p class="nhsuk-body">
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.
</p>

<% if policy(PatientSpecificDirection).create? %>
Expand Down
4 changes: 2 additions & 2 deletions spec/features/flu_vaccination_hca_psd_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down