Sha256: 1cd5e4dce357ee4615b6dbc4830afd4e8909397863c7bb9e4a37f460999154a0

Contents?: true

Size: 464 Bytes

Versions: 6

Compression:

Stored size: 464 Bytes

Contents

# frozen_string_literal: true

require_relative '../shared_contexts/with_applicant'

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

  let(:document_file_name) { 'sample_driving_licence.png' }
  let(:document_file) { File.open("spec/integrations/media/#{document_file_name}") }

  let(:document) { onfido_api.upload_document('passport', applicant_id, document_file) }
  let!(:document_id) { document.id }
end

Version data entries

6 entries across 6 versions & 1 rubygems

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