Sha256: 9fe06bf2fddbd38858cb1a51b9775fb171081a00bdf9ab3635f1282229453997
Contents?: true
Size: 996 Bytes
Versions: 2
Compression:
Stored size: 996 Bytes
Contents
describe MangoPay::UboDeclaration do include_context 'users' include_context 'ubo' describe 'FETCH' do it 'can fetch a UBO declaration' do legal_user = new_legal_user ubo_declaration = MangoPay::UboDeclaration.create(legal_user['Id']) ubo_declaration = MangoPay::UboDeclaration.fetch(legal_user['Id'], ubo_declaration['Id']) expect(ubo_declaration).not_to be_nil end describe 'UPDATE' do it 'can update a UBO declaration' do legal_user = new_legal_user ubo_declaration = MangoPay::UboDeclaration.create(legal_user['Id']) ubo_declaration['Status'] = 'VALIDATION_ASKED' ubo = new_ubo(legal_user, ubo_declaration) ubo_declaration['Ubos'] = [ubo] ubo_declaration = MangoPay::UboDeclaration.update(legal_user['Id'], ubo_declaration['Id'], ubo_declaration) expect(ubo_declaration).not_to be_nil expect(ubo_declaration['Status']).to eq 'VALIDATION_ASKED' end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mangopay-3.0.33 | spec/mangopay/ubo_declaration_spec.rb |
mangopay-3.0.32 | spec/mangopay/ubo_declaration_spec.rb |