Sha256: 89503f27a9c21b26e30d4f490913556e001ee7f4836505598df413654ebd6f76
Contents?: true
Size: 763 Bytes
Versions: 1
Compression:
Stored size: 763 Bytes
Contents
require_relative '../../spec_helper' describe MangoPay::BankAccount do include_context 'users' include_context 'bank_details' describe 'CREATE' do it 'creates a new bank detail' do expect(new_iban_bank_detail['Id']).not_to be_nil end end describe 'FETCH' do it 'fetches all the bank details' do bank_details = MangoPay::BankAccount.fetch(new_iban_bank_detail['UserId']) expect(bank_details).to be_kind_of(Array) expect(bank_details[0]['Id']).to eq(new_iban_bank_detail['Id']) end it 'fetches one bank detail' do bank_detail = MangoPay::BankAccount.fetch(new_iban_bank_detail['UserId'], new_iban_bank_detail['Id']) expect(bank_detail['Id']).to eq(new_iban_bank_detail['Id']) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mangopay-3.0.0 | spec/lib/mangopay/bank_account_spec.rb |