spec/support/fake_onfido_api.rb in onfido-0.0.3 vs spec/support/fake_onfido_api.rb in onfido-0.0.4
- old
+ new
@@ -45,9 +45,19 @@
get '/v1/4xx_response' do
json_response(422, '4xx_response.json')
end
+ get '/v1/unexpected_error_format' do
+ json_response(400, 'unexpected_error_format.json')
+ end
+
+ get '/v1/unparseable_response' do
+ content_type :json
+ status 504
+ ''
+ end
+
private
def json_response(response_code, file_name)
content_type :json
status response_code