require File.expand_path('../test_assistant', __FILE__) require "digest/md5" module Pingpp class BalanceTest < Test::Unit::TestCase should "execute should return a transfer balance_transaction" do obj = Pingpp::Balance.create_transfer( :user => 'test_user_001', :recipient => 'test_user_004', :description => 'Balance transfer description.', :amount => 200 ) puts obj assert obj.object == 'balance_transaction' end should "execute should return a receipts balance_transaction list" do obj = Pingpp::Balance.create_receipts( :type => 'receipts_earning', :description => 'Balance receipts description.', :receipts => [ { :user => 'test_user_001', :amount => 500 }, { :user => 'test_user_003', :amount => 700 } ] ) puts obj assert obj.object == 'list' end end end