Sha256: 8e27e3375a19e771b41f38dee740b8f2d15c3ae0cdb28322de4f13423f895e2c
Contents?: true
Size: 683 Bytes
Versions: 7
Compression:
Stored size: 683 Bytes
Contents
require_relative '../../spec_helper' describe MangoPay::BankAccount do include_context 'bank_accounts' describe 'CREATE' do it 'creates a new bank detail' do expect(new_bank_account['Id']).not_to be_nil end end describe 'FETCH' do it 'fetches all the bank details' do list = MangoPay::BankAccount.fetch(new_bank_account['UserId']) expect(list).to be_kind_of(Array) expect(list[0]['Id']).to eq(new_bank_account['Id']) end it 'fetches single bank detail' do single = MangoPay::BankAccount.fetch(new_bank_account['UserId'], new_bank_account['Id']) expect(single['Id']).to eq(new_bank_account['Id']) end end end
Version data entries
7 entries across 7 versions & 1 rubygems