-
Notifications
You must be signed in to change notification settings - Fork 112
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
Refactor proofing_components in AnalyticsSpec #10810
Conversation
changelog: Internal, Tests, Small refactor to AnalyticsSpec
spec/features/idv/analytics_spec.rb
Outdated
let(:base_proofing_components) do | ||
# rubocop:disable Layout/LineLength | ||
{ document_check: 'mock', document_type: 'state_id', source_check: 'aamva', resolution_check: 'lexis_nexis', threatmetrix: threatmetrix, threatmetrix_review_status: 'pass' } | ||
# rubocop:enable Layout/LineLength |
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.
I'd just as soon not disable the LineLength linter, but that's the style in this file, Kyle.
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.
seems like this part could benefit from being broken out onto separate lines?
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.
Woot, that was actually my preference but I had my silly rhyme about that being the norm in this file. There's no reason to keep it that way, so update incoming.
# rubocop:enable Layout/LineLength | ||
end | ||
let(:lexis_nexis_address_proofing_components) do | ||
base_proofing_components.merge(address_check: 'lexis_nexis_address') |
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.
I thought this was more expressive than repeating the whole thing, even if it's probably a few CPU cycles slower.
changelog: Internal, Tests, Small refactor to AnalyticsSpec
🎫 Ticket
No ticket asks for this, but it's done in service of 13120 (and the common good).
🛠 Summary of changes
A change I'm making in 13120 (trying to avoid it autolinking to the LG) requires adding a new parameter to
proofing_components
, and changing it in a bajillion places is 😡 not fun.To avoid a wild diff in that PR, I'm putting this up in isolation.