Sha256: 881b77f621003489381e9cfdb1c358f593fe89f323df0f3257ed4fcd170fd441

Contents?: true

Size: 746 Bytes

Versions: 1

Compression:

Stored size: 746 Bytes

Contents

# encoding: utf-8
require_relative '../test_helper'

module PagarMe
  class TransferTest < Test::Unit::TestCase
    should 'be able to create a transfer' do
      transfer = test_transfer
      transfer.create

      assert transfer.id != nil
      assert transfer.fee != nil
      assert transfer.object == "transfer"
      assert %w(doc credito_em_conta ted).include?(transfer.type)
    end

    should 'be able to find with id' do
      transfer_r = test_transfer
      transfer_r.create

      transfer = PagarMe::Transfer.find_by_id transfer_r.id

      assert transfer.id != nil
      assert transfer.fee != nil
      assert transfer.object == "transfer"
      assert %w(doc credito_em_conta ted).include?(transfer.type)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pagarme-2.0.1 test/pagarme/transfer.rb