spec/support/fake_api.rb in finapps-2.2.17 vs spec/support/fake_api.rb in finapps-2.2.18

- old
+ new

@@ -20,9 +20,13 @@ get('/v2/orders') { json_response 200, 'orders.json' } get('/v2/orders/valid_id/report.:format') { json_response 200, 'order_report.json' } get('/v2/orders/invalid_id/report.:format') { json_response 404, 'resource_not_found.json' } get('/v2/orders/valid_id/status') { json_response 200, 'order_status.json' } get('/v2/orders/invalid_id/status') { json_response 404, 'resource_not_found.json' } + put('/v2/orders/valid_id/cancel') { status 204 } + put('/v2/orders/invalid_id/cancel') { json_response 404, 'resource_not_found.json' } + put('/v2/orders/valid_id/notify') { status 204 } + put('/v2/orders/invalid_id/notify') { json_response 404, 'resource_not_found.json' } put('/v2/orders/invalid_id') { json_response 404, 'resource_not_found.json' } put('/v2/orders/valid_id') do request.body.rewind request_payload = JSON.parse request.body.read if request_payload['accounts'] == 'valid_account'