diff options
Diffstat (limited to 'yarns/100-happy.yarn')
-rw-r--r-- | yarns/100-happy.yarn | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/yarns/100-happy.yarn b/yarns/100-happy.yarn index 6e099ce..5a5ba32 100644 --- a/yarns/100-happy.yarn +++ b/yarns/100-happy.yarn @@ -21,6 +21,7 @@ Create a simple resource. Remember its id. THEN status code is 201 THEN remember resource id as ID THEN remember resource revision as REV1 + THEN response has header "Muck-Owner: tomjon" WHEN user tomjon makes request GET /status THEN status code is 200 @@ -33,6 +34,7 @@ Retrieve the resource. THEN response body is { "foo": "bar" } THEN response has header "Muck-Id: ${ID}" THEN response has header "Muck-Revision: ${REV1}" + THEN response has header "Muck-Owner: tomjon" Update the resource. @@ -54,6 +56,7 @@ Check the resource has been updated. THEN response body is { "foo": "foobar" } THEN response has header "Muck-Id: ${ID}" THEN response has header "Muck-Revision: ${REV2}" + THEN response has header "Muck-Owner: tomjon" Restart Muck. The resource should still exist. @@ -63,6 +66,7 @@ Restart Muck. The resource should still exist. THEN response body is { "foo": "foobar" } THEN response has header "Muck-Id: ${ID}" THEN response has header "Muck-Revision: ${REV2}" + THEN response has header "Muck-Owner: tomjon" Search for the resource. First with a condition that is no longer true. |