spec/support/fake_onfido_api.rb in onfido-2.5.0 vs spec/support/fake_onfido_api.rb in onfido-2.6.0

- old
+ new

@@ -112,9 +112,29 @@ status 200 content_type 'video/quicktime' "\x01\x02\x03" # acts as binary file data end + post '/v3.5/watchlist_monitors' do + json_response(201, 'monitor.json') + end + + get '/v3.5/watchlist_monitors/:id' do + json_response(200, 'monitor.json') + end + + get '/v3.5/watchlist_monitors' do + if params['applicant_id'] == '1030303-123123-123123' + json_response(200, 'monitors.json') + else + status 404 + end + end + + delete '/v3.5/watchlist_monitors/:id' do + status 204 + end + get '/v3.5/motion_captures/:id' do json_response(200, 'motion_capture.json') end get '/v3.5/motion_captures' do