Skip to content

Commit fcec690

Browse files
Merge pull request #5563 from nhsuk/fix-patient-id-test-setup
fix: setup for draft vaccination recoreds controller tests
2 parents 1737419 + 08a4a1b commit fcec690

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

spec/controllers/draft_vaccination_records_controller_spec.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@
88

99
before do
1010
allow(controller).to receive(:session).and_return(
11-
{ "vaccination_record" => { "patient_id" => patient.id } }
11+
{
12+
"vaccination_record" => {
13+
"patient_id" => patient.id,
14+
"programme_type" => Programme.sample.type
15+
}
16+
}
1217
)
1318
end
1419

0 commit comments

Comments
 (0)