Sha256: e1bc9ef69ce13fe1826963840b1f238544432a49c16dd7c2e0ec7f863d8fea9e
Contents?: true
Size: 827 Bytes
Versions: 27
Compression:
Stored size: 827 Bytes
Contents
describe MangoPay::BankingAliases do include_context 'users' include_context 'wallets' include_context 'bankigaliases' describe 'CREATE' do it 'creates a new banking alias' do expect(new_banking_alias['CreditedUserId']).to eq(new_natural_user['Id']) end end describe 'UPDATE' do it 'updates a banking alias' do updated_banking_alias = MangoPay::BankingAliases.update(new_banking_alias['Id'] ,{ Active: false }) expect(updated_banking_alias['Active']).to eq(false) end end describe 'FETCH' do it 'fetches all the banking aliases for a wallet' do bankingaliases = MangoPay::BankingAliases.fetch_for_wallet(new_banking_alias['WalletId']) expect(bankingaliases).to be_kind_of(Array) expect(bankingaliases).not_to be_empty end end end
Version data entries
27 entries across 27 versions & 1 rubygems