Sha256: 3e3f1267aa2e43ddac8d7c2d4f16844f921149532925bd62e8ac06f29e89cb81

Contents?: true

Size: 611 Bytes

Versions: 21

Compression:

Stored size: 611 Bytes

Contents

require "spec_helper"

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

  let(:sender) do
    PagSeguro::Transaction::Sender.new(xml['sender'])
  end

  subject { sender }

  its(:name) { should eq('José Comprador') }
  its(:email) { should eq('comprador@uol.com.br') }
  its(:phone) { should be_a_kind_of(PagSeguro::Transaction::Phone) }

  let(:xml_file) {
    "<sender>
      <name>José Comprador</name>
      <email>comprador@uol.com.br</email>
      <phone>
          <areaCode>11</areaCode>
          <number>56273440</number>
      </phone>
    </sender>"
  }
end

Version data entries

21 entries across 21 versions & 1 rubygems

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