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

Version Path
mangopay-3.12.0 spec/mangopay/bankingaliases_spec.rb
mangopay-3.11.1 spec/mangopay/bankingaliases_spec.rb
mangopay-3.11.0 spec/mangopay/bankingaliases_spec.rb
mangopay-3.10.0 spec/mangopay/bankingaliases_spec.rb
mangopay-3.9.0 spec/mangopay/bankingaliases_spec.rb
mangopay-3.8.0 spec/mangopay/bankingaliases_spec.rb
mangopay-3.7.0 spec/mangopay/bankingaliases_spec.rb
mangopay-3.6.0 spec/mangopay/bankingaliases_spec.rb
mangopay-3.5.0 spec/mangopay/bankingaliases_spec.rb
mangopay-3.4.0 spec/mangopay/bankingaliases_spec.rb
mangopay-3.3.0 spec/mangopay/bankingaliases_spec.rb
mangopay-3.2.0 spec/mangopay/bankingaliases_spec.rb
mangopay-3.1.0 spec/mangopay/bankingaliases_spec.rb
mangopay-3.0.38 spec/mangopay/bankingaliases_spec.rb
mangopay-3.0.37 spec/mangopay/bankingaliases_spec.rb
mangopay-3.0.36 spec/mangopay/bankingaliases_spec.rb
mangopay-3.0.35 spec/mangopay/bankingaliases_spec.rb
mangopay-3.0.34 spec/mangopay/bankingaliases_spec.rb
mangopay-3.0.33 spec/mangopay/bankingaliases_spec.rb
mangopay-3.0.32 spec/mangopay/bankingaliases_spec.rb