Skip to content

Commit ecc502a

Browse files
authored
Merge pull request #5837 from nhsuk/fix-flaky-test
Fix flaky test
2 parents 07e3057 + 82cc4fa commit ecc502a

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

spec/lib/status_generator/programme_spec.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,13 +296,21 @@
296296
end
297297

298298
context "when consent is needed" do
299+
let(:programme) { Programme.menacwy }
300+
299301
its(:date) { should be_nil }
300302
its(:disease_types) { should be_nil }
301303
its(:dose_sequence) { should be_nil }
302304
its(:location_id) { should be_nil }
303305
its(:status) { should be(:needs_consent_no_response) }
304306
its(:vaccine_methods) { should be_nil }
305307
its(:without_gelatine) { should be_nil }
308+
309+
context "with a multi-dose programme" do
310+
let(:programme) { Programme.mmr }
311+
312+
its(:dose_sequence) { should eq(1) }
313+
end
306314
end
307315

308316
context "when not eligible" do

0 commit comments

Comments
 (0)