-
Notifications
You must be signed in to change notification settings - Fork 166
LG-14273: Ensure the in-person verification profile has an enrollment record #11315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
754579e
ef3c6c7
7a610dd
ea1c154
d5c9e11
5099ada
c76bdb2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -221,9 +221,8 @@ | |
| end | ||
|
|
||
| trait :with_pending_in_person_enrollment do | ||
| after :build do |user| | ||
| profile = create(:profile, :with_pii, :in_person_verification_pending, user: user) | ||
| create(:in_person_enrollment, :pending, user: user, profile: profile) | ||
| profiles do | ||
| [association(:profile, :with_pii, :in_person_verification_pending, user: instance)] | ||
| end | ||
| end | ||
|
|
||
|
|
@@ -270,16 +269,14 @@ | |
| confirmed_at { Time.zone.now.round } | ||
|
|
||
| after :build do |user| | ||
| profile = create( | ||
| create( | ||
|
Comment on lines
-273
to
+272
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it would be nice if we could do this as a
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you say more about the reason for preferring
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I tried making the suggested change, but it broke a spec in the delete account controller spec. I am going to merge the PR as is. |
||
| :profile, | ||
| :with_pii, | ||
| :active, | ||
| :verified, | ||
| :in_person_verification_pending, | ||
| :in_person_verified, | ||
| user: user, | ||
| ) | ||
| create(:in_person_enrollment, :passed, user: user, profile: profile) | ||
| profile.in_person_verification_pending_at = nil | ||
| end | ||
| end | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did this just not exist previously? 😮
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It did not.