spec/support/fake_onfido_api.rb in onfido-0.0.4 vs spec/support/fake_onfido_api.rb in onfido-0.1.0
- old
+ new
@@ -13,11 +13,11 @@
json_response(200, 'applicant.json')
end
get '/v1/applicants' do
response = json_response(200, 'applicants.json')
- {applicants: JSON.parse(response)['applicants'][pagination_range]}.to_json
+ { applicants: JSON.parse(response)['applicants'][pagination_range] }.to_json
end
post '/v1/applicants/:id/documents' do
json_response(201, 'document.json')
end
@@ -30,10 +30,10 @@
json_response(200, 'check.json')
end
get '/v1/applicants/:id/checks' do
response = json_response(200, 'checks.json')
- {checks: JSON.parse(response)['checks'][pagination_range]}.to_json
+ { checks: JSON.parse(response)['checks'][pagination_range] }.to_json
end
get '/v1/checks/:id/reports' do
json_response(200, 'reports.json')
end