Skip to content

Move USPS verification selection to shared example#1583

Merged
jmhooper merged 1 commit intomasterfrom
jmhooper-usps-verification-shared-examples
Aug 2, 2017
Merged

Move USPS verification selection to shared example#1583
jmhooper merged 1 commit intomasterfrom
jmhooper-usps-verification-shared-examples

Conversation

@jmhooper
Copy link
Contributor

@jmhooper jmhooper commented Aug 1, 2017

Why: We want tests for the case where the user selects USPS
verification for both the SAML and OIDC protocols.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This method and the next are borrowed from #1581

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This test is almost completely copy/pasted from the original one except for this line through 37. I added those to check that we match the initial state setup in #1581

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Did this so I could do the following in the tests:

user = register_user

...instead of...

email = 'asdf@test.com'
register_user(email)
user = User.find_with_email(email)

@monfresh
Copy link
Contributor

monfresh commented Aug 2, 2017

Looks good. Wanna rebase with master to pick up the changes in my PR (renamed methods)?

@jmhooper jmhooper force-pushed the jmhooper-usps-verification-shared-examples branch from ac9502e to a4de41e Compare August 2, 2017 15:44
@jmhooper
Copy link
Contributor Author

jmhooper commented Aug 2, 2017

Rebased

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'd like to rename this. Having usps_address_confirmation.rb next to usps_verification.rb is a little bit confusing.

@jmhooper
Copy link
Contributor Author

jmhooper commented Aug 2, 2017

Renamed the file that holds the new shared examples. PTAL

Copy link
Contributor

@monfresh monfresh left a comment

Choose a reason for hiding this comment

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

LGTM

**Why**: We want tests for the case where the user selects USPS
verification for both the SAML and OIDC protocols.
@jmhooper jmhooper force-pushed the jmhooper-usps-verification-shared-examples branch from c02f637 to 001586e Compare August 2, 2017 16:46
@jmhooper jmhooper merged commit f3644a4 into master Aug 2, 2017
@jmhooper jmhooper deleted the jmhooper-usps-verification-shared-examples branch August 10, 2017 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants