Sha256: e8229beaa86bfdb87b5b477af3344f89d2c39b726a3342c4b5a2e1e061216ff9

Contents?: true

Size: 505 Bytes

Versions: 6

Compression:

Stored size: 505 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],
    })
  end

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
onfido-3.4.0 spec/shared_contexts/with_check.rb
onfido-3.3.1 spec/shared_contexts/with_check.rb
onfido-3.3.0 spec/shared_contexts/with_check.rb
onfido-3.2.0 spec/shared_contexts/with_check.rb
onfido-3.1.0 spec/shared_contexts/with_check.rb
onfido-3.0.0 spec/shared_contexts/with_check.rb