spec/support/fake_api.rb in finapps-2.3.1 vs spec/support/fake_api.rb in finapps-2.3.2

- old
+ new

@@ -25,9 +25,11 @@ 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/valid_id/refresh') { json_response 200, 'order_refresh.json' } + put('/v2/orders/invalid_id/refresh') { 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'