Sha256: 0bce23c64b3725a52e3b9e819ae46be690caf8bddff4e0922cbed50d8b74348d

Contents?: true

Size: 445 Bytes

Versions: 10

Compression:

Stored size: 445 Bytes

Contents

describe Onfido::SdkToken do
  subject(:sdk_token) { described_class.new }
  let(:applicant_id) { '61f659cb-c90b-4067-808a-6136b5c01351' }
  let(:referrer) { 'http://*.mywebsite.com/*' }

  describe '#create' do
    let(:params) { { applicant_id: applicant_id, referrer: referrer } }

    it 'creates a new SDK token for the applicant' do
      response = sdk_token.create(params)
      expect(response['token']).not_to be_nil
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
onfido-0.15.1 spec/integrations/sdk_token_spec.rb
onfido-0.15.0 spec/integrations/sdk_token_spec.rb
onfido-0.14.0 spec/integrations/sdk_token_spec.rb
onfido-0.13.0 spec/integrations/sdk_token_spec.rb
onfido-0.12.0 spec/integrations/sdk_token_spec.rb
onfido-0.11.0 spec/integrations/sdk_token_spec.rb
onfido-0.10.0 spec/integrations/sdk_token_spec.rb
onfido-0.9.0 spec/integrations/sdk_token_spec.rb
onfido-0.8.4 spec/integrations/sdk_token_spec.rb
onfido-0.8.3 spec/integrations/sdk_token_spec.rb