Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions app/services/idv/proofing_components.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,7 @@ def residential_resolution_check
end

def resolution_check
if idv_session.verify_info_step_complete?
# NOTE: Fallback to LexisNexis to handle 50/50 state, will be removed later
idv_session.resolution_vendor || Idp::Constants::Vendors::LEXIS_NEXIS
end
idv_session.resolution_vendor if idv_session.verify_info_step_complete?
end

def address_check
Expand Down
21 changes: 1 addition & 20 deletions spec/services/idv/proofing_components_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
.and_return(true)
idv_session.threatmetrix_review_status = 'pass'
idv_session.source_check_vendor = 'aamva'
idv_session.resolution_vendor = 'lexis_nexis'
end

it 'returns expected result' do
Expand Down Expand Up @@ -168,16 +169,6 @@
expect(subject.residential_resolution_check).to eql('AReallyGoodVendor')
end
end

context 'when resolution done but residential_resolution_vendor nil because of 50/50 state' do
before do
idv_session.mark_verify_info_step_complete!
end

it 'returns nil to match previous behavior' do
expect(subject.residential_resolution_check).to be(nil)
end
end
end

describe '#resolution_check' do
Expand All @@ -195,16 +186,6 @@
expect(subject.resolution_check).to eql('AReallyGoodVendor')
end
end

context 'when resolution done but resolution_vendor nil because of 50/50 state' do
before do
idv_session.mark_verify_info_step_complete!
end

it 'returns LexisNexis to match previous behavior' do
expect(subject.resolution_check).to eql('lexis_nexis')
end
end
end

describe '#address_check' do
Expand Down