Sha256: 12e30a7863b2b93db56f465ce2ca7e7f4e2450e600501f102cad1f4b66a729d3

Contents?: true

Size: 527 Bytes

Versions: 2

Compression:

Stored size: 527 Bytes

Contents

# frozen_string_literal: true

require_relative '../shared_contexts/with_onfido'

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

  let(:applicant_id) do
    applicant = onfido_api.create_applicant(default_applicant_body)

    applicant.id
  end

  let(:default_applicant_body) do
    {
      'first_name' => 'Test',
      'last_name' => 'Applicant',
      'location' => {
        'ip_address' => '127.0.0.1',
        'country_of_residence' => 'GBR'
      }
    }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
onfido-3.1.0 spec/shared_contexts/with_applicant.rb
onfido-3.0.0 spec/shared_contexts/with_applicant.rb