Sha256: 311a9793e90524f43226ef56de064f062c674347b302da363e5c555cf08e0562
Contents?: true
Size: 936 Bytes
Versions: 5
Compression:
Stored size: 936 Bytes
Contents
require 'tempfile' describe Onfido::LiveVideo do subject(:live_video) { described_class.new } describe '#find' do let(:applicant_id) { '1030303-123123-123123' } let(:live_video_id) { 'c9701e9b-83aa-442f-995b-20320ee8fb01' } it 'returns the expected live photo' do response = live_video.find(applicant_id, live_video_id) expect(response['id']).to eq(live_video_id) end end describe '#all' do let(:applicant_id) { '1030303-123123-123123' } it 'returns list of documents' do response = live_video.all(applicant_id) expect(response['live_videos']).not_to be_empty end end describe '#download' do let(:applicant_id) { '1030303-123123-123123' } let(:live_video_id) { 'c9701e9b-83aa-442f-995b-20320ee8fb01' } it 'returns the file data' do response = live_video.download(applicant_id, live_video_id) expect(response).not_to be_nil end end end
Version data entries
5 entries across 5 versions & 1 rubygems