Sha256: dfc4a996b12efb984d5152784b9997b72f1710c8be0305aa2bcbe4176bb1d20a

Contents?: true

Size: 497 Bytes

Versions: 21

Compression:

Stored size: 497 Bytes

Contents

require "spec_helper"

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

  let(:payment_method) do
    PagSeguro::Transaction::PaymentMethod.new(xml['paymentMethod'])
  end

  subject { payment_method }

  its(:payment_type) { should eq('1') }
  its(:payment_type_name) { should eq(:credit_card) }
  its(:payment_code) { should eq('101') }

  let(:xml_file) {
    "<paymentMethod>
      <type>1</type>
      <code>101</code>
    </paymentMethod>"
  }
end

Version data entries

21 entries across 21 versions & 1 rubygems

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