spec/support/fake_api.rb in finapps-4.0.16 vs spec/support/fake_api.rb in finapps-5.0.0

- old
+ new

@@ -9,9 +9,19 @@ get('/v3/resources/:id') { json_response 200, 'resource.json' } get('/v3/resources') { json_response 200, 'resources.json' } put('/v3/resources') { json_response 201, 'resource.json' } delete('/v3/resources/:id') { status 202 } + # plaid + post('/v3/p/webhook') do + tenant_token = request.env['HTTP_X_TENANT_TOKEN'] + if tenant_token == 'invalid_tenant_token' + json_response 404, 'resource_not_found.json' + else + json_response 200, 'plaid/webhook.json' + end + end + # version get('/v3/version') { 'Version => 2.1.29-.20161208.172810' } # tenants get('/v3/settings/tenant') { json_response 200, 'tenant_settings.json' }