Sha256: 472258f6da517d6d42f4f94e0693d1a124a93d80b32fdda0a2d84e086c19fe96

Contents?: true

Size: 467 Bytes

Versions: 21

Compression:

Stored size: 467 Bytes

Contents

require "spec_helper"

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

  let(:shipping) do
    PagSeguro::Transaction::Shipping.new(xml['shipping'])
  end

  subject { shipping }

  its(:type) { should eq('1') }
  its(:cost) { should eq('21.50') }
  its(:address) { should be_a_kind_of(PagSeguro::Transaction::Address) }

  let(:xml_file) {
    "<shipping>
      <type>1</type>
      <cost>21.50</cost>
    </shipping>"
  }
end

Version data entries

21 entries across 21 versions & 1 rubygems

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