Sha256: 8e13b16b6189d662c0cb4e8d95914cb419bad00ae2dae9700664928582fdcead

Contents?: true

Size: 475 Bytes

Versions: 3

Compression:

Stored size: 475 Bytes

Contents

require_relative '../../test_helper'

module PagarMe
  class ZipcodeTest < Test::Unit::TestCase
    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

3 entries across 3 versions & 1 rubygems

Version Path
pagarme-2.1.2 test/pagarme/resources/zipcode_test.rb
pagarme-2.1.1 test/pagarme/resources/zipcode_test.rb
pagarme-2.1.0 test/pagarme/resources/zipcode_test.rb