Sha256: 9c4ec1b30c4f1e4d784afb91cd8aa2309d5e199714221e1da16bfc3ff5f099a9

Contents?: true

Size: 471 Bytes

Versions: 13

Compression:

Stored size: 471 Bytes

Contents

# frozen_string_literal: true

describe Onfido::SdkToken do
  include_context 'fake onfido api'

  subject(:sdk_token) { onfido.sdk_token }

  describe '#create' do
    it 'creates a new SDK token for the applicant' do
      applicant_id = '61f659cb-c90b-4067-808a-6136b5c01351'
      referrer = 'http://*.mywebsite.com/*'

      response = sdk_token.create(applicant_id: applicant_id, referrer: referrer)

      expect(response['token']).not_to be_nil
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
onfido-2.9.0 spec/integrations/sdk_token_spec.rb
onfido-2.8.0 spec/integrations/sdk_token_spec.rb
onfido-2.7.0 spec/integrations/sdk_token_spec.rb
onfido-2.6.0 spec/integrations/sdk_token_spec.rb
onfido-2.5.0 spec/integrations/sdk_token_spec.rb
onfido-2.4.0 spec/integrations/sdk_token_spec.rb
onfido-2.3.0 spec/integrations/sdk_token_spec.rb
onfido-2.2.0 spec/integrations/sdk_token_spec.rb
onfido-2.1.1 spec/integrations/sdk_token_spec.rb
onfido-2.1.0 spec/integrations/sdk_token_spec.rb
onfido-2.0.2 spec/integrations/sdk_token_spec.rb
onfido-2.0.1 spec/integrations/sdk_token_spec.rb
onfido-2.0.0 spec/integrations/sdk_token_spec.rb