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
3 changes: 2 additions & 1 deletion app/services/idv/flows/doc_auth_flow.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ class DocAuthFlow < Flow::BaseFlow
welcome: Idv::Steps::WelcomeStep,
agreement: Idv::Steps::AgreementStep,
upload: Idv::Steps::UploadStep,
send_link: Idv::Steps::SendLinkStep,
**(IdentityConfig.store.doc_auth_combined_hybrid_handoff_enabled ?
{} : { send_link: Idv::Steps::SendLinkStep }),
Comment on lines +8 to +9
Copy link
Contributor

Choose a reason for hiding this comment

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

just wanted to flag that adding conditional definitions of constants can be tricky for testing, because the tests could be created with the wrong value. From the description, it sounded like this is temporary, so I'm not too worried

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point. In this case I know at least some of the specs were working because I had the values in the wrong order to start with and it made a test fail.

link_sent: Idv::Steps::LinkSentStep,
email_sent: Idv::Steps::EmailSentStep,
document_capture: Idv::Steps::DocumentCaptureStep,
Expand Down
3 changes: 2 additions & 1 deletion spec/services/idv/steps/upload_step_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
ActionController::Parameters.new(
{
doc_auth: { phone: '(201) 555-1212' },
combined: true,
},
)
end
Expand Down Expand Up @@ -61,7 +62,7 @@
end

subject(:step) do
Idv::Steps::SendLinkStep.new(flow)
Idv::Steps::UploadStep.new(flow)
end

before do
Expand Down