summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2019-06-15 13:56:52 +0300
committerLars Wirzenius <liw@liw.fi>2019-06-15 13:56:52 +0300
commit787eac8221c451bb98742184c7ad1c37f284e533 (patch)
tree8335475e55c62002d14ff9e7453a94b608d3aa6f
parent419982c48e3ba72e129fc6008f00d6873bea760b (diff)
downloadfable-poc-787eac8221c451bb98742184c7ad1c37f284e533.tar.gz
Add: regexp bindings for jt
-rw-r--r--jt.yaml11
1 files changed, 10 insertions, 1 deletions
diff --git a/jt.yaml b/jt.yaml
index fe51488..f33cd94 100644
--- a/jt.yaml
+++ b/jt.yaml
@@ -1 +1,10 @@
-[]
+- given: a file (?P<filename>.+)
+- when: I run (?P<cmd>jt .*)
+- then: there is (?P<count>\d+) draft
+- then: there is (?P<count>\d+) draft, with attachment (?P<filename>.+)
+- then: there is (?P<count>\d+) journal entry
+- then: there is (?P<count>\d+) journal entry, with attachment (?P<filename>.+)
+- then: there is (?P<count>\d+) journal entry, belonging to (?P<id>.+)
+- then: there is (?P<count>\d+) topic, (?P<id>.+), titled "(?P<title>.+)"
+- then: there are (?P<count>\d+) journal entries
+- then: draft (?P<id>\d+) has title "(?P<title>.*)"