Sha256: 5f3645f0cd3251cf4a9f85bbb1bf0835cb5826e0db19f06fcddf8ee73dd8a0b9

Contents?: true

Size: 608 Bytes

Versions: 8

Compression:

Stored size: 608 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',
      'email' => "first.last@gmail.com",
      'phone_number' => "351911111111",
      'location' => {
        'ip_address' => '127.0.0.1',
        'country_of_residence' => 'GBR'
      }
    }
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
onfido-4.3.0 spec/shared_contexts/with_applicant.rb
onfido-4.2.0 spec/shared_contexts/with_applicant.rb
onfido-4.1.0 spec/shared_contexts/with_applicant.rb
onfido-4.0.0 spec/shared_contexts/with_applicant.rb
onfido-3.4.0 spec/shared_contexts/with_applicant.rb
onfido-3.3.1 spec/shared_contexts/with_applicant.rb
onfido-3.3.0 spec/shared_contexts/with_applicant.rb
onfido-3.2.0 spec/shared_contexts/with_applicant.rb