summaryrefslogtreecommitdiff
path: root/yarns.webapp/900-implementations.yarn
diff options
context:
space:
mode:
Diffstat (limited to 'yarns.webapp/900-implementations.yarn')
-rw-r--r--yarns.webapp/900-implementations.yarn6
1 files changed, 3 insertions, 3 deletions
diff --git a/yarns.webapp/900-implementations.yarn b/yarns.webapp/900-implementations.yarn
index 2d24c44..0e3aa9e 100644
--- a/yarns.webapp/900-implementations.yarn
+++ b/yarns.webapp/900-implementations.yarn
@@ -96,11 +96,11 @@ scenario doesn't need ot check that separately.
cat "$DATADIR/response.body"
head -n1 "$DATADIR/response.headers" | grep '^HTTP/1\.[01] 200 '
-Check the Content-Type of the response is JSON.
+Check the Content-Type of the response has the desired type.
- IMPLEMENTS THEN response is JSON
+ IMPLEMENTS THEN response is (\S+)
cat "$DATADIR/response.headers"
- grep -i '^Content-Type: application/json' "$DATADIR/response.headers"
+ grep -i "^Content-Type: $MATCH_1" "$DATADIR/response.headers"
A JSON response can then be queried further. The JSON is expected to
be a dict, so that values are accessed by name from the dict. The