File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 501501 end
502502
503503 before do
504- # Fully enable feature flag
505- Flipper . enable ( :imms_api_search_job )
504+ # Enable feature flag actors as they will be in prod, until MMRV is enabled
505+ Flipper . disable ( :imms_api_search_job )
506+
507+ Flipper . enable ( :imms_api_search_job , Programme . flu )
508+ Flipper . enable ( :imms_api_search_job , Programme . hpv )
509+ Flipper . enable ( :imms_api_search_job , Programme . menacwy )
510+ Flipper . enable ( :imms_api_search_job , Programme . td_ipv )
511+ Flipper . enable (
512+ :imms_api_search_job ,
513+ Programme . mmr . variant_for (
514+ disease_types : Programme ::Variant ::DISEASE_TYPES . fetch ( "mmr" )
515+ )
516+ )
506517 end
507518
508519 it "creates new vaccination records for incoming Immunizations" do
Original file line number Diff line number Diff line change 888888 end
889889
890890 context "for mmr" do
891- let ( :programme ) { Programme . mmr }
891+ before { Flipper . enable ( :mmrv ) }
892+
893+ let ( :programme ) do
894+ Programme . mmr . variant_for (
895+ disease_types : Programme ::Variant ::DISEASE_TYPES . fetch ( "mmr" )
896+ )
897+ end
892898
893899 context "with a fhir record from Mavis" do
894900 let ( :fixture_file_name ) { "fhir/mmr/fhir_record_from_mavis.json" }
895901
896902 include_examples "a mapped vaccination record (common fields)"
897903
904+ its ( :programme ) { should be_a Programme ::Variant }
905+ it { expect ( vaccination_record . programme . variant_type ) . to eq "mmr" }
906+
898907 its ( :nhs_immunisations_api_identifier_system ) do
899908 should eq "http://manage-vaccinations-in-schools.nhs.uk/vaccination_records"
900909 end
You can’t perform that action at this time.
0 commit comments