Sha256: 8ded3f0be44428f9be13a619952e26cf6136b0398c1869edef61b79678651970

Contents?: true

Size: 470 Bytes

Versions: 8

Compression:

Stored size: 470 Bytes

Contents

require_relative '../../test_helper'

module PagarMe
  class ZipcodeTest < PagarMeTestCase
    should 'be able find a zipcode' do
      zipcode = PagarMe::Zipcode.find '12228-462'

      assert_equal zipcode.city,         'São José dos Campos'
      assert_equal zipcode.neighborhood, 'Campus do CTA'
      assert_equal zipcode.state,        'SP'
      assert_equal zipcode.street,       'Rua H8C'
      assert_equal zipcode.zipcode,      '12228462'
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
pagarme-2.4.0 test/pagarme/resources/zipcode_test.rb
pagarme-2.3.0 test/pagarme/resources/zipcode_test.rb
pagarme-2.2.3 test/pagarme/resources/zipcode_test.rb
pagarme-2.2.2 test/pagarme/resources/zipcode_test.rb
pagarme-2.2.1 test/pagarme/resources/zipcode_test.rb
pagarme-2.2.0 test/pagarme/resources/zipcode_test.rb
pagarme-2.1.4 test/pagarme/resources/zipcode_test.rb
pagarme-2.1.3 test/pagarme/resources/zipcode_test.rb