Sha256: dea944f57c58a9dc15729e477ce297683ed6e5dd71e15908c676cd7bca4df752

Contents?: true

Size: 549 Bytes

Versions: 8

Compression:

Stored size: 549 Bytes

Contents

require_relative '../../test_helper'

module PagarMe
  class TransferTest < PagarMeTestCase
    def setup
      super
      ensure_positive_balance
    end

    should 'be able to create a transfer' do
      transfer = PagarMe::Transfer.create transfer_params
      assert_transfer transfer
    end

    should 'be able to find with id' do
      transfer = PagarMe::Transfer.create transfer_params
      assert_transfer transfer

      found_transfer = PagarMe::Transfer.find_by_id transfer.id
      assert_transfer found_transfer
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
pagarme-2.4.0 test/pagarme/resources/transfer_test.rb
pagarme-2.3.0 test/pagarme/resources/transfer_test.rb
pagarme-2.2.3 test/pagarme/resources/transfer_test.rb
pagarme-2.2.2 test/pagarme/resources/transfer_test.rb
pagarme-2.2.1 test/pagarme/resources/transfer_test.rb
pagarme-2.2.0 test/pagarme/resources/transfer_test.rb
pagarme-2.1.4 test/pagarme/resources/transfer_test.rb
pagarme-2.1.3 test/pagarme/resources/transfer_test.rb