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
2 changes: 1 addition & 1 deletion app/controllers/concerns/idv/ab_test_analytics_concern.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def ab_test_analytics_buckets
end

if defined?(document_capture_session_uuid)
lniv_args = LexisnexisInstantVerify.new(document_capture_session_uuid).
lniv_args = LexisNexisInstantVerify.new(document_capture_session_uuid).
workflow_ab_test_analytics_args
buckets = buckets.merge(lniv_args)
end
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Idv
class LexisnexisInstantVerify
class LexisNexisInstantVerify
attr_reader :document_capture_session_uuid

def initialize(document_capture_session_uuid)
Expand Down
2 changes: 1 addition & 1 deletion app/services/proofing/resolution/progressive_proofer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def resolution_proofer
end

def lexisnexis_instant_verify_workflow
ab_test_variables = Idv::LexisnexisInstantVerify.new(instant_verify_ab_test_discriminator).
ab_test_variables = Idv::LexisNexisInstantVerify.new(instant_verify_ab_test_discriminator).
workflow_ab_testing_variables
ab_test_variables[:instant_verify_workflow]
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ def document_capture_session_uuid

let(:acuant_sdk_args) { { as_bucket: :as_value } }
let(:instant_verify_sdk_args) { { iv_bucket: :iv_value } }
let(:lniv) { Idv::LexisnexisInstantVerify.new(controller.document_capture_session_uuid) }
let(:lniv) { Idv::LexisNexisInstantVerify.new(controller.document_capture_session_uuid) }

before do
allow(subject).to receive(:current_user).and_return(user)
expect(subject).to receive(:acuant_sdk_ab_test_analytics_args).
and_return(acuant_sdk_args)
allow(Idv::LexisnexisInstantVerify).to receive(:new).
allow(Idv::LexisNexisInstantVerify).to receive(:new).
and_return(lniv)
expect(lniv).to receive(:workflow_ab_test_analytics_args).
and_return(instant_verify_sdk_args)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
require 'rails_helper'

RSpec.describe Idv::LexisnexisInstantVerify do
RSpec.describe Idv::LexisNexisInstantVerify do
let(:session_uuid) { SecureRandom.uuid }
let(:default_workflow) { 'legacy_workflow' }
let(:alternate_workflow) { 'equitable_workflow' }
let(:ab_testing_enabled) { false }

subject { Idv::LexisnexisInstantVerify.new(session_uuid) }
subject { Idv::LexisNexisInstantVerify.new(session_uuid) }

before do
allow(IdentityConfig.store).
Expand Down
4 changes: 2 additions & 2 deletions spec/services/proofing/resolution/progressive_proofer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,10 @@
end

it 'uses the selected workflow' do
lniv = Idv::LexisnexisInstantVerify.new(dcs_uuid)
lniv = Idv::LexisNexisInstantVerify.new(dcs_uuid)
expect(lniv).to receive(:workflow_ab_testing_variables).
and_return(ab_test_variables)
expect(Idv::LexisnexisInstantVerify).to receive(:new).
expect(Idv::LexisNexisInstantVerify).to receive(:new).
and_return(lniv)
expect(Proofing::LexisNexis::InstantVerify::Proofer).to receive(:new).
with(hash_including(instant_verify_workflow: instant_verify_workflow)).
Expand Down