Sha256: 3e4cb1c0f965acfe3d70114598d59f505e9cc83dd2150cf6852a37eef3412ef4

Contents?: true

Size: 552 Bytes

Versions: 4

Compression:

Stored size: 552 Bytes

Contents

# frozen_string_literal: true

require_relative '../shared_contexts/with_document'

RSpec.shared_context 'with check', shared_context: :metadata do
  include_context 'with document'

  let(:check_builder) do
    Onfido::CheckBuilder.new({
      applicant_id: applicant_id,
      document_ids: [document_id],
      report_names: [Onfido::ReportName::DOCUMENT, Onfido::ReportName::IDENTITY_ENHANCED],
      privacy_notices_read_consent_given: true
    })
  end

  let(:check) { onfido_api.create_check(check_builder) }
  let!(:check_id) { check.id }
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
onfido-4.3.0 spec/shared_contexts/with_check.rb
onfido-4.2.0 spec/shared_contexts/with_check.rb
onfido-4.1.0 spec/shared_contexts/with_check.rb
onfido-4.0.0 spec/shared_contexts/with_check.rb