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