spec/support/fake_onfido_api.rb in onfido-1.0.0 vs spec/support/fake_onfido_api.rb in onfido-1.1.0

- old
+ new

@@ -36,10 +36,14 @@ post '/v3/documents' do json_response(201, 'document.json') end + post '/v3/extractions' do + json_response(201, 'extraction.json') + end + get '/v3/documents/:id' do json_response(200, 'document.json') end get '/v3/documents' do @@ -132,9 +136,14 @@ json_response(201, 'webhook.json') end get '/v3/webhooks/:id' do json_response(200, 'webhook.json') + end + + delete '/v3/webhooks/:id' do + content_type "application/json; charset=utf-8" + status 204 end get '/v3/webhooks' do json_response(200, 'webhooks.json') end