Skip to content

Rename "signed_up" spec trait to "fully_registered"#8302

Merged
aduth merged 1 commit intomainfrom
aduth-spec-rename-signed-up-fully-registered
Apr 27, 2023
Merged

Rename "signed_up" spec trait to "fully_registered"#8302
aduth merged 1 commit intomainfrom
aduth-spec-rename-signed-up-fully-registered

Conversation

@aduth
Copy link
Contributor

@aduth aduth commented Apr 27, 2023

🛠 Summary of changes

Renames the User spec factory signed_up trait to fully_registered, to improve clarity that this reflects a user who has completed all of (a) submitting their email address, (b) confirming their email address, and (c) adding a multi-factor authentication method. This also improves consistency with the new User#fully_registered? method and the registration_logs table's registered_at field.

See: https://github.com/18F/identity-idp/pull/8270/files#r1176848052

📜 Testing Plan

rspec

changelog: Internal, Code Quality, Clarify name for fully-registered test accounts
Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, wow I didn't realize we used this trait so much! very glad we broke out into a separate PR

Comment on lines -26 to +32
:user, :signed_up, otp_delivery_preference: delivery_preference,
direct_otp_sent_at: direct_otp_sent_at,
with: { phone: '+1 (703) 555-0000' }
:user,
:fully_registered,
otp_delivery_preference: delivery_preference,
direct_otp_sent_at: direct_otp_sent_at,
with: { phone: '+1 (703) 555-0000' },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

big fan of reflowing these. thank you!

@aduth aduth merged commit 822141a into main Apr 27, 2023
@aduth aduth deleted the aduth-spec-rename-signed-up-fully-registered branch April 27, 2023 20:20
@mdiarra3 mdiarra3 mentioned this pull request May 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants