Sha256: 84502339e2579160c793f5d2403dd3dae6dae932509bd9079f4cef43a147130f

Contents?: true

Size: 661 Bytes

Versions: 1

Compression:

Stored size: 661 Bytes

Contents

require_relative '../../spec_helper'

describe MangoPay::PayOut::BankWire, type: :feature do
  include_context 'users'
  include_context 'wallets'
  include_context 'bank_details'
  include_context 'cards'
  include_context 'bank_wires'

  describe 'CREATE' do
    it 'creates a bank wire payout' do
      expect(new_bank_wire['Id']).not_to be_nil
      expect(new_bank_wire['Status']).to eq('CREATED')
    end
  end

  describe 'FETCH' do
    it 'fetches a payout' do
      bank_wire = MangoPay::PayOut.fetch(new_bank_wire['Id'])
      expect(bank_wire['Id']).to eq(new_bank_wire['Id'])
      expect(new_bank_wire['Status']).to eq('CREATED')
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mangopay-3.0.0 spec/lib/mangopay/payout_spec.rb