Skip to content

Commit

Permalink
Ensure the in-person verifcation profile has an enrollment record
Browse files Browse the repository at this point in the history
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
  • Loading branch information
h-m-m committed Oct 8, 2024
1 parent d86199b commit 570b052
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/factories/profiles.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 570b052

Please sign in to comment.