Sha256: 3ff266a82c77e709f2b94a11d6417593fd34ae3109ff41068e4f9c49a886da39

Contents?: true

Size: 828 Bytes

Versions: 19

Compression:

Stored size: 828 Bytes

Contents

describe MangoPay::BankingAliases do
  include_context 'users'
  include_context 'wallets'
  include_context 'bankingaliases'

  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

19 entries across 19 versions & 1 rubygems

Version Path
mangopay-3.28.0 spec/mangopay/bankingaliases_spec.rb
mangopay-3.27.0 spec/mangopay/bankingaliases_spec.rb
mangopay-3.26.1 spec/mangopay/bankingaliases_spec.rb
mangopay-3.26.0 spec/mangopay/bankingaliases_spec.rb
mangopay-3.25.1 spec/mangopay/bankingaliases_spec.rb
mangopay-3.25.0 spec/mangopay/bankingaliases_spec.rb
mangopay-3.24.1 spec/mangopay/bankingaliases_spec.rb
mangopay-3.24.0 spec/mangopay/bankingaliases_spec.rb
mangopay-3.23.0 spec/mangopay/bankingaliases_spec.rb
mangopay-3.22.0 spec/mangopay/bankingaliases_spec.rb
mangopay-3.21.0 spec/mangopay/bankingaliases_spec.rb
mangopay-3.20.0 spec/mangopay/bankingaliases_spec.rb
mangopay-3.19.0 spec/mangopay/bankingaliases_spec.rb
mangopay-3.18.0 spec/mangopay/bankingaliases_spec.rb
mangopay-3.17.0 spec/mangopay/bankingaliases_spec.rb
mangopay-3.16.0 spec/mangopay/bankingaliases_spec.rb
mangopay-3.15.0 spec/mangopay/bankingaliases_spec.rb
mangopay-3.14.0 spec/mangopay/bankingaliases_spec.rb
mangopay-3.13.2 spec/mangopay/bankingaliases_spec.rb