Sha256: e26ad11d091626a684621f939c10d8d9ed2f38361de1da1e24968ba6d897fbb9

Contents?: true

Size: 955 Bytes

Versions: 3

Compression:

Stored size: 955 Bytes

Contents

# encoding: utf-8

describe Akatus::Address do

  let(:attrs) {
    {
      :type               => 'entrega',
      :street             => 'Rua Labib Marrar',
      :number             => '129',
      :neighborhood       => 'Jardim Santa Cruz',
      :city               => 'São Paulo',
      :state              => 'SP',
      :country            => 'BRA',
      :postal_code        => '04182040',
      :additional_details => 'Apto. 33',
      :reference          => 'Perto da padaria do Seu Zé'
    }
  }

  let(:payload) {
    {
      'endereco' => {
        'tipo'        => 'entrega',
        'logradouro'  => 'Rua Labib Marrar',
        'numero'      => '129',
        'bairro'      => 'Jardim Santa Cruz',
        'complemento' => 'Apto. 33',
        'cidade'      => 'São Paulo',
        'estado'      => 'SP',
        'pais'        => 'BRA',
        'cep'         => '04182040'
      }
    }
  }

  it_behaves_like Akatus::Transferrable

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
akatus-1.0.2 spec/address_spec.rb
akatus-1.0.1 spec/address_spec.rb
akatus-1.0.0 spec/address_spec.rb