Skip to content

Commit adff05b

Browse files
Al Davidsonthomasleese
andauthored
Update spec/models/reporting_api/vaccination_event_spec.rb
Co-authored-by: Thomas Leese <thomas@leese.io>
1 parent 2e5f7fa commit adff05b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/models/reporting_api/vaccination_event_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
#
6565
describe ReportingAPI::VaccinationEvent do
6666
let!(:flu) do
67-
Programme.find_by_type("flu") || create(:programme, type: "flu")
67+
Programme.flu.first || create(:programme, type: "flu")
6868
end
6969

7070
let(:location) { create(:school, name: "St Vaxes") }

0 commit comments

Comments
 (0)