spec/support/fake_onfido_api.rb in onfido-0.2.0 vs spec/support/fake_onfido_api.rb in onfido-0.3.0
- old
+ new
@@ -41,9 +41,18 @@
get '/v1/checks/:id/reports/:id' do
json_response(200, 'report.json')
end
+ post '/v1/webhooks' do
+ json_response(201, 'webhook.json')
+ end
+
+ get '/v1/webhooks' do
+ json_response(200, 'webhooks.json')
+ end
+
+
get '/v1/4xx_response' do
json_response(422, '4xx_response.json')
end
get '/v1/unexpected_error_format' do