Skip to content

Commit 8bfd712

Browse files
Rename test file
This test file now includes a flu session, so describing it as "HPV" is no longer accurate.
1 parent 2e6f9df commit 8bfd712

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

spec/features/hpv_vaccination_offline_spec.rb renamed to spec/features/vaccination_offline_spec.rb

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

3-
describe "HPV vaccination" do
3+
describe "offline vaccination" do
44
around do |example|
55
travel_to(Time.zone.local(2024, 2, 1, 12)) { example.run }
66
end
@@ -236,13 +236,8 @@ def given_a_flu_programme_is_underway_with_a_single_patient
236236
end
237237

238238
def and_the_patients_record_is_sourced_from_nhs_api
239-
fhir_record =
240-
FHIR.from_contents(file_fixture("fhir/fhir_record_full.json").read)
241-
@nhs_api_vaccination_record =
242-
FHIRMapper::VaccinationRecord.from_fhir_record(
243-
fhir_record,
244-
patient: @previously_vaccinated_patient
245-
)
239+
fhir_record = FHIR.from_contents(file_fixture("fhir/fhir_record_full.json").read)
240+
@nhs_api_vaccination_record = FHIRMapper::VaccinationRecord.from_fhir_record(fhir_record, patient: @previously_vaccinated_patient)
246241
@nhs_api_vaccination_record.performed_at = 1.month.ago
247242
@nhs_api_vaccination_record.notes = "Imported from NHS API"
248243
@nhs_api_vaccination_record.save!
@@ -305,9 +300,7 @@ def and_the_nhs_api_record_should_remain_unchanged
305300
expect(@nhs_api_vaccination_record.notes).to eq("Imported from NHS API")
306301
expect(@nhs_api_vaccination_record.source).to eq("nhs_immunisations_api")
307302
expect(@nhs_api_vaccination_record.outcome).to eq("administered")
308-
expect(@nhs_api_vaccination_record.delivery_site).to eq(
309-
"left_arm_upper_position"
310-
)
303+
expect(@nhs_api_vaccination_record.delivery_site).to eq("left_arm_upper_position")
311304
end
312305

313306
def when_i_go_to_the_import_page

0 commit comments

Comments
 (0)