Slide 60
Slide 60 text
UPDATING THE API
Failures:
1) the API has valid paths post /packages happy should validate that post /
packages returns 201
Failure/Error: it { is_expected.to validate(:post, "/packages", 201, params) }
'/packages#/' did not contain a required property of 'volume'
Response body:
{
"id": 24,
"destination_id": 114,
"length": 14.7,
"width": 12.2,
"height": 2.1,
"weight": 3.3,
"created_at": "2018-04-15T22:54:37.166Z",
"updated_at": "2018-04-15T22:54:37.166Z"
}
# ./spec/api/api_spec.rb:17:in `block (5 levels) in '