Sha256: 5ddfbaa543b28349ef9811d6787b8e33318435e0de352e09beb708cd9fe6572d
Contents?: true
Size: 846 Bytes
Versions: 1
Compression:
Stored size: 846 Bytes
Contents
require "test_helper" require "acceptance_test" class BankTransfer < Test::Unit::TestCase include AcceptanceTest it_works_using_oauth1_and_oauth2 do |client, client_type| can "create a bank for #{client_type}" do all_accounts = client.Account.all @from_bank_account = all_accounts.select { |acct| acct.status == "ACTIVE" && acct.type == "BANK" }.first @to_bank_account = all_accounts.select { |acct| acct.status == "ACTIVE" && acct.type == "BANK" }.last new_transfer = client.BankTransfer.build( :amount => 300, :from_bank_account => { :account_id => @from_bank_account.account_id }, :to_bank_account => { :account_id => @to_bank_account.account_id } ) assert new_transfer.save, "Save failed with the following errors: #{new_transfer.errors.inspect}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
xeroizer-3-pre-beta-3.0.0.pre.beta | test/acceptance/bank_transfer_test.rb |