spec/support/fake_onfido_api.rb in onfido-0.11.0 vs spec/support/fake_onfido_api.rb in onfido-0.12.0

- old
+ new

@@ -72,9 +72,35 @@ content_type 'image/jpeg' "\x01\x02\x03" # acts as binary file data end end + get '/v2/live_videos/:id' do + if params["applicant_id"] != "1030303-123123-123123" + status 404 + else + json_response(200, 'live_video.json') + end + end + + get '/v2/live_videos' do + if params["applicant_id"] != "1030303-123123-123123" + status 404 + else + json_response(200, 'live_videos.json') + end + end + + get '/v2/live_videos/:id/download' do + if params["applicant_id"] != "1030303-123123-123123" + status 404 + else + status 200 + content_type 'video/quicktime' + "\x01\x02\x03" # acts as binary file data + end + end + post '/v2/applicants/:id/checks' do json_response(201, 'check.json') end get '/v2/applicants/:id/checks/:id' do