|
31 | 31 | team: team,
|
32 | 32 | location: school,
|
33 | 33 | programmes: [programme_flu],
|
34 |
| - academic_year: academic_year, |
| 34 | + academic_year:, |
35 | 35 | send_consent_requests_at: 10.days.ago
|
36 | 36 | )
|
37 | 37 | end
|
38 | 38 |
|
39 |
| - let!(:patient) { create(:patient, team: team) } |
40 |
| - let(:patient_session) do |
41 |
| - create(:patient_session, session: session, patient: patient) |
42 |
| - end |
| 39 | + let!(:patient) { create(:patient, team:) } |
| 40 | + let(:patient_session) { create(:patient_session, session:, patient:) } |
43 | 41 |
|
44 | 42 | let(:consent) do
|
45 | 43 | create(
|
46 | 44 | :consent,
|
47 | 45 | :given,
|
48 |
| - patient: patient, |
| 46 | + patient:, |
| 47 | + academic_year:, |
49 | 48 | programme: programme_flu,
|
50 | 49 | submitted_at: 8.days.ago,
|
51 | 50 | created_at: 8.days.ago
|
|
92 | 91 | described_class.new(
|
93 | 92 | teams: [team],
|
94 | 93 | programmes: [programme_flu],
|
95 |
| - academic_year: academic_year |
| 94 | + academic_year: |
96 | 95 | )
|
97 | 96 | end
|
98 | 97 |
|
99 | 98 | let!(:flu_session) do
|
100 | 99 | create(
|
101 | 100 | :session,
|
102 | 101 | date: Date.new(AcademicYear.current, 12, 15),
|
103 |
| - team: team, |
| 102 | + team:, |
104 | 103 | location: school,
|
105 | 104 | programmes: [programme_flu],
|
106 |
| - academic_year: academic_year, |
| 105 | + academic_year:, |
107 | 106 | send_consent_requests_at: Date.new(AcademicYear.current, 12, 1)
|
108 | 107 | )
|
109 | 108 | end
|
|
112 | 111 | create(
|
113 | 112 | :session,
|
114 | 113 | date: Date.new(AcademicYear.current, 11, 15),
|
115 |
| - team: team, |
| 114 | + team:, |
116 | 115 | location: school,
|
117 | 116 | programmes: [programme_hpv],
|
118 |
| - academic_year: academic_year, |
| 117 | + academic_year:, |
119 | 118 | send_consent_requests_at: Date.new(AcademicYear.current, 11, 1)
|
120 | 119 | )
|
121 | 120 | end
|
|
143 | 142 | let!(:current_year_session) do
|
144 | 143 | create(
|
145 | 144 | :session,
|
146 |
| - team: team, |
| 145 | + team:, |
147 | 146 | location: school,
|
148 | 147 | programmes: [programme_flu],
|
149 | 148 | academic_year: current_year
|
|
154 | 153 | create(
|
155 | 154 | :session,
|
156 | 155 | date: Date.new(AcademicYear.current - 1, 12, 15),
|
157 |
| - team: team, |
| 156 | + team:, |
158 | 157 | location: school,
|
159 | 158 | programmes: [programme_flu],
|
160 | 159 | academic_year: previous_year
|
|
192 | 191 | create(
|
193 | 192 | :consent,
|
194 | 193 | :given,
|
195 |
| - patient: patient, |
| 194 | + patient:, |
| 195 | + academic_year:, |
196 | 196 | programme: programme_flu,
|
197 | 197 | submitted_at: 8.days.ago,
|
198 | 198 | created_at: 8.days.ago
|
|
203 | 203 | create(
|
204 | 204 | :consent,
|
205 | 205 | :given,
|
206 |
| - patient: patient, |
| 206 | + patient:, |
| 207 | + academic_year:, |
207 | 208 | programme: programme_hpv,
|
208 | 209 | submitted_at: 6.days.ago,
|
209 | 210 | created_at: 6.days.ago
|
|
0 commit comments