Skip to content

Commit 5036af9

Browse files
authored
Merge pull request #4830 from nhsuk/fix-flaky-test
Fix flaky test related to session being `nil`
2 parents 3f8d20d + ba80c63 commit 5036af9

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)