Sha256: c0bc222995eb8d661f9736c7ed934ffb540cf822fa6f3e84ec7c3a8d6609a6cd

Contents?: true

Size: 600 Bytes

Versions: 3

Compression:

Stored size: 600 Bytes

Contents

# encoding: utf-8

describe Akatus::Payer do

  let(:attrs) {
    {
      :name    => 'Jose Antonio',
      :email   => 'ze@antonio.com.br',
      :phone   => build(:phone),
      :address => build(:address)
    }
  }

  let(:payload) {
    {
      'pagador' => {
        'nome'    => 'Jose Antonio',
        'email'   => 'ze@antonio.com.br',
        'enderecos' => {
          'endereco' => [ build(:address).to_payload(false) ]
        },
        'telefones' => {
          'telefone' => [ build(:phone).to_payload(false) ]
        }
      }
    }
  }

  it_behaves_like Akatus::Transferrable

end

Version data entries

3 entries across 3 versions & 1 rubygems

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