Sha256: 481da623a0fb259ecdaee43e48a483c4ebc1b433ffde969ae064843d54661a19

Contents?: true

Size: 417 Bytes

Versions: 10

Compression:

Stored size: 417 Bytes

Contents

# frozen_string_literal: true

require_relative '../shared_contexts/with_onfido'

describe Onfido::Address do
  describe 'Address picker' do
    include_context 'with onfido'

    it 'finds an address based on post code' do
      post_code = 'S2 2DF'
      addresses_with_post_code = onfido_api.find_addresses(post_code).addresses

      expect(addresses_with_post_code[0].postcode).to eq post_code
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
onfido-4.3.0 spec/integrations/address_picker_spec.rb
onfido-4.2.0 spec/integrations/address_picker_spec.rb
onfido-4.1.0 spec/integrations/address_picker_spec.rb
onfido-4.0.0 spec/integrations/address_picker_spec.rb
onfido-3.4.0 spec/integrations/address_picker_spec.rb
onfido-3.3.1 spec/integrations/address_picker_spec.rb
onfido-3.3.0 spec/integrations/address_picker_spec.rb
onfido-3.2.0 spec/integrations/address_picker_spec.rb
onfido-3.1.0 spec/integrations/address_picker_spec.rb
onfido-3.0.0 spec/integrations/address_picker_spec.rb