summaryrefslogtreecommitdiff
path: root/yarns
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2018-07-13 14:55:25 +0300
committerLars Wirzenius <liw@liw.fi>2018-07-13 15:20:43 +0300
commit20931f89382da56cf63834f992d716e37b41560d (patch)
treec5f505a2dc6ad54373291de458beccb4230b85cb /yarns
parent9980b52ed2d032a3e297dbeead6baf44983b481c (diff)
downloadqvisqve-20931f89382da56cf63834f992d716e37b41560d.tar.gz
Change: actually implement a step
Diffstat (limited to 'yarns')
-rw-r--r--yarns/900-implements.yarn4
1 files changed, 2 insertions, 2 deletions
diff --git a/yarns/900-implements.yarn b/yarns/900-implements.yarn
index 2f3d42e..e21d8d5 100644
--- a/yarns/900-implements.yarn
+++ b/yarns/900-implements.yarn
@@ -84,8 +84,8 @@ This chapter shows the scenario step implementations.
IMPLEMENTS WHEN browser requests GET (\S+)
# FIXME: This is a dummy implemantation, does not do anything real.
- V['status_code'] = 200
- V['headers'] = {'Content-Type': 'text/html'}
+ path = get_next_match()
+ V['status_code'], V['headers'], V['body'] = get(V['API_URL'] + path, {})
IMPLEMENTS WHEN browser requests POST (\S+)$
# FIXME: This is a dummy implemantation, does not do anything real.