|
13 | 13 | consents: patient.consents, |
14 | 14 | triages: patient.triages, |
15 | 15 | attendance_record: patient.attendance_records.first, |
16 | | - vaccination_records: patient.vaccination_records.order_by_performed_at, |
17 | | - parents: patient.parents.contactable |
| 16 | + vaccination_records: patient.vaccination_records.order_by_performed_at |
18 | 17 | ) |
19 | 18 | end |
20 | 19 |
|
21 | 20 | let(:programme) { Programme.sample } |
22 | 21 | let(:session) { create(:session, programmes: [programme]) } |
23 | | - let(:patient) { create(:patient, session:, parents:) } |
24 | | - let(:parents) { [create(:parent)] } |
| 22 | + let(:patient) { create(:patient, session:) } |
25 | 23 | let(:location) { create(:school) } |
26 | 24 |
|
27 | 25 | context "when already vaccinated" do |
|
370 | 368 | its(:vaccine_methods) { should be_nil } |
371 | 369 | its(:without_gelatine) { should be_nil } |
372 | 370 |
|
373 | | - context "when there are no contact details for parents and no consent request has been sent" do |
374 | | - let(:parents) { [create(:parent, :non_contactable)] } |
375 | | - |
376 | | - its(:status) { should be(:needs_consent_no_contact_details) } |
377 | | - end |
378 | | - |
379 | | - context "when there are no parent relationships and no consent request has been sent" do |
380 | | - let(:parents) { [] } |
381 | | - |
382 | | - its(:status) { should be(:needs_consent_no_contact_details) } |
383 | | - end |
384 | | - |
385 | 371 | context "with a multi-dose programme" do |
386 | 372 | let(:programme) { Programme.mmr } |
387 | 373 |
|
|
0 commit comments