From 570b052953e169f78ce0f442fb6069edd7cb903f Mon Sep 17 00:00:00 2001 From: "Howard M. Miller" <3620291+h-m-m@users.noreply.github.com> Date: Fri, 4 Oct 2024 14:17:44 -0400 Subject: [PATCH] Ensure the in-person verifcation profile has an enrollment record In theory, it should never happen that the profile is pending verification and the enrollment record does not exist. changelog: Internal, Automated Testing, Improve test setup for enrolling profiles --- spec/factories/profiles.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spec/factories/profiles.rb b/spec/factories/profiles.rb index 66eead40d4c..1131dfca19a 100644 --- a/spec/factories/profiles.rb +++ b/spec/factories/profiles.rb @@ -38,6 +38,9 @@ trait :in_person_verification_pending do in_person_verification_pending_at { 15.days.ago } idv_level { :legacy_in_person } + in_person_enrollment do + association(:in_person_enrollment, :pending, profile: instance, user:) + end end trait :fraud_pending_reason do