Sha256: bbfbe91298e7db6876d9a89779c91a48c9794711cc3af234a934475b2be1b5f8

Contents?: true

Size: 615 Bytes

Versions: 5

Compression:

Stored size: 615 Bytes

Contents

require File.expand_path('../test_assistant', __FILE__)

module Pingpp
  class BalanceTransactionTest < Test::Unit::TestCase
    should "execute should return a balance_transaction list when passed correct parameters" do
      txns = Pingpp::BalanceTransaction.list({:per_page => 3})

      assert txns.object == 'list'
      assert txns.data.count <= 3
    end

    should "execute should return an exist balance_transaction when passed correct id" do
      txn = Pingpp::BalanceTransaction.retrieve(get_txn_id)

      assert txn.object == 'balance_transaction'
      assert txn.id == get_txn_id
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pingpp-2.2.4 test/balance_transaction_test.rb
pingpp-2.2.3 test/balance_transaction_test.rb
pingpp-2.2.2 test/balance_transaction_test.rb
pingpp-2.2.1 test/balance_transaction_test.rb
pingpp-2.2.0 test/balance_transaction_test.rb