File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
app/views/sessions/patient_specific_directions Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 23
23
<%= govuk_inset_text do %>
24
24
< span class ="nhsuk-u-visually-hidden "> Information: </ span >
25
25
< 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.
28
29
</ p >
29
30
30
31
<% if policy ( PatientSpecificDirection ) . create? %>
Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ def and_the_injection_patient_should_have_psd_status_not_added
181
181
end
182
182
183
183
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 " )
185
185
end
186
186
187
187
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
206
206
207
207
def and_i_should_only_see_one_child_eligible_for_bulk_adding_psd
208
208
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"
210
210
)
211
211
end
212
212
You can’t perform that action at this time.
0 commit comments