Skip to content
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

Construct valid regional partner for test #37788

Merged
merged 1 commit into from
Nov 11, 2020

Conversation

Hamms
Copy link
Contributor

@Hamms Hamms commented Nov 10, 2020

Required for the Rails 5.2 upgrade.

Similar to #37681, this is a product of the fact that the created regional partner was failing validation, which meant that it was failing to persist to the database, which means that the later steps of this test wasn't working.

It's not entirely clear to me why the factory was failing to create a valid instance, but the simple fix is to just create one manually.

Reviewer Checklist:

  • Tests provide adequate coverage
  • Privacy and Security impacts have been assessed
  • Code is well-commented
  • New features are translatable or updates will not break translations
  • Relevant documentation has been added or updated
  • User impact is well-understood and desirable
  • Pull Request is labeled appropriately
  • Follow-up work items (including potential tech debt) are tracked and linked

Required for the Rails 5.2 upgrade.

Similar to #37681, this is a product of the fact that the created regional partner was failing validation, which meant that it was failing to persist to the database, which means that the later steps of this test wasn't working.

It's not entirely clear to me why the factory was failing to create a valid instance, but the simple fix is to just create one manually.
@Hamms Hamms added the Rails Upgrade All work related to upgrading the version of Ruby on Rails we use. label Nov 10, 2020
@Hamms Hamms merged commit e023f91 into staging Nov 11, 2020
@Hamms Hamms deleted the ensure-valid-regional-partner-in-test branch November 11, 2020 18:55
@Hamms Hamms mentioned this pull request Nov 12, 2020
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Rails Upgrade All work related to upgrading the version of Ruby on Rails we use.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants