Sha256: 8766f7b3e68a5587358c48268971213dca2f7b47c8ccd0830c70ba235ee6233b

Contents?: true

Size: 896 Bytes

Versions: 21

Compression:

Stored size: 896 Bytes

Contents

require "spec_helper"

describe PagSeguro::Transaction::Address do
  let(:xml) { MultiXml.parse(xml_file) }

  let(:address) do
    PagSeguro::Transaction::Address.new(xml['address'])
  end

  subject { address }

  its(:street) { should eq('Av. Brig. Faria Lima') }
  its(:number) { should eq('1384') }
  its(:complement) { should eq('5o andar') }
  its(:district) { should eq('Jardim Paulistano') }
  its(:postal_code) { should eq('01452002') }
  its(:city) { should eq('Sao Paulo') }
  its(:state) { should eq('SP') }
  its(:country) { should eq('BRA') }

  let(:xml_file) {
    "<address>
      <street>Av. Brig. Faria Lima</street>
      <number>1384</number>
      <complement>5o andar</complement>
      <district>Jardim Paulistano</district>
      <postalCode>01452002</postalCode>
      <city>Sao Paulo</city>
      <state>SP</state>
      <country>BRA</country>
    </address>"
  }
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
pagseguro-transparente-1.1.0 spec/pagseguro/transaction/address_spec.rb
pagseguro-transparente-1.0.1 spec/pagseguro/transaction/address_spec.rb
pagseguro-transparente-1.0.0 spec/pagseguro/transaction/address_spec.rb
pagseguro-transparente-0.2.5 spec/pagseguro/transaction/address_spec.rb
pagseguro-transparente-0.2.4 spec/pagseguro/transaction/address_spec.rb
pagseguro-transparente-0.2.3 spec/pagseguro/transaction/address_spec.rb
pagseguro-transparente-0.2.2 spec/pagseguro/transaction/address_spec.rb
pagseguro-transparente-0.2.1 spec/pagseguro/transaction/address_spec.rb
pagseguro-transparente-0.2.0 spec/pagseguro/transaction/address_spec.rb
pagseguro-transparente-0.1.3 spec/pagseguro/transaction/address_spec.rb
pagseguro-transparente-0.1.2 spec/pagseguro/transaction/address_spec.rb
pagseguro-transparente-0.1.1 spec/pagseguro/transaction/address_spec.rb
pagseguro-transparente-0.1.0 spec/pagseguro/transaction/address_spec.rb
pagseguro-transparente-0.0.9 spec/pagseguro/transaction/address_spec.rb
pagseguro-transparente-0.0.8 spec/pagseguro/transaction/address_spec.rb
pagseguro-transparente-0.0.7 spec/pagseguro/transaction/address_spec.rb
pagseguro-transparente-0.0.6 spec/pagseguro/transaction/address_spec.rb
pagseguro-transparente-0.0.5 spec/pagseguro/transaction/address_spec.rb
pagseguro-transparente-0.0.4 spec/pagseguro/transaction/address_spec.rb
pagseguro-transparente-0.0.3 spec/pagseguro/transaction/address_spec.rb