Skip to content

Commit ba80c63

Browse files
committed
Fix flaky test related to session being nil
This fixes a test that was added in 69eac27 which exhibits some flaky behaviour related to which programme is picked.
1 parent 3f8d20d commit ba80c63

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

spec/lib/govuk_notify_personalisation_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,9 +514,9 @@
514514
end
515515
end
516516

517-
context "with session nil" do
517+
context "with the session is nil" do
518518
let(:session) { nil }
519-
let(:consent) { create(:consent, patient:) }
519+
let(:consent) { create(:consent, patient:, programme: programmes.first) }
520520

521521
it "doesn't throw an error" do
522522
expect { to_h }.not_to raise_error

0 commit comments

Comments
 (0)