Skip to content

Commit 0c57057

Browse files
committed
Fix some spec regressions
1 parent ffc5451 commit 0c57057

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

spec/features/flu_vaccination_administered_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,6 @@ def and_a_text_is_sent_to_the_parent_confirming_the_vaccination
345345
end
346346

347347
def and_the_parent_doesnt_receive_a_vaccination_already_had_email
348-
expect(email_deliveries).to be_empty
348+
expect_no_email_to(@patient.consents.last.parent.email, :vaccination_already_had)
349349
end
350350
end

spec/features/mmr_already_had_spec.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,12 @@
3737
expect(page).to have_content("LocationUnknown")
3838
and_had_been_vaccinated_with_mmr
3939
and_the_dose_number_is_first
40-
and_the_consent_requests_are_sent
41-
42-
then_the_parent_doesnt_receive_a_consent_request
43-
and_the_parent_receives_an_already_vaccinated_email
4440
end
4541

4642
scenario "record a patient born before January 2020 as already had their 1st MMR dose outside the school session" do
4743
given_an_mmr_programme_with_a_session
4844
and_a_patient_is_in_the_session_born_before_january_2020
45+
and_the_patient_has_a_parent_with_a_consent_request
4946
and_the_patient_doesnt_need_triage
5047
and_the_patient_has_not_had_a_first_dose
5148

@@ -61,6 +58,7 @@
6158
scenario "record a patient born after January 2020 as already had their 2nd MMRV dose outside the school session" do
6259
given_an_mmr_programme_with_a_session
6360
and_a_patient_is_in_the_session_born_after_january_2020
61+
and_the_patient_has_a_parent_with_a_consent_request
6462
and_the_patient_doesnt_need_triage
6563
and_the_patient_already_has_first_dose
6664

0 commit comments

Comments
 (0)