Sha256: b3234ff06eeecd6f93e655e0f1c9f505174480c7404186e3325268bbfaa301cc

Contents?: true

Size: 406 Bytes

Versions: 21

Compression:

Stored size: 406 Bytes

Contents

require "spec_helper"

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

  let(:phone) do
    PagSeguro::Transaction::Phone.new(xml['phone'])
  end

  subject { phone }

  its(:area_code) { should eq('11') }
  its(:number) { should eq('56273440') }

  let(:xml_file) {
    "<phone>
        <areaCode>11</areaCode>
        <number>56273440</number>
      </phone>"
  }
end

Version data entries

21 entries across 21 versions & 1 rubygems

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