summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2014-11-22 19:52:38 +0200
committerLars Wirzenius <liw@liw.fi>2014-11-22 19:52:38 +0200
commita9bdef939d057763d5b0e643dd5dfd01ee8907f4 (patch)
treeaa4036c89e512203c44bccd819ec68e3ec42500d
parentde3b41b647d6bafb92d0f368660c6ca92056d7f4 (diff)
downloadjt-a9bdef939d057763d5b0e643dd5dfd01ee8907f4.tar.gz
Add preliminary scenario for topics
-rw-r--r--yarns/030-topics.yarn10
-rw-r--r--yarns/900-implementations.yarn2
2 files changed, 11 insertions, 1 deletions
diff --git a/yarns/030-topics.yarn b/yarns/030-topics.yarn
new file mode 100644
index 0000000..86f9d9b
--- /dev/null
+++ b/yarns/030-topics.yarn
@@ -0,0 +1,10 @@
+Using Topics
+============
+
+A topic is implemented as a wiki page to which journal entries link.
+First we create a topic page:
+
+ SCENARIO create topic page
+ GIVEN an empty journal in SRC
+ WHEN I run jt new-topic research/2014/dishwasher "Buy a dishwasher"
+ THEN file SRC/research/2014/dishwasher.mdwn matches title="Buy a dishwasher"
diff --git a/yarns/900-implementations.yarn b/yarns/900-implementations.yarn
index a2e149f..561b096 100644
--- a/yarns/900-implementations.yarn
+++ b/yarns/900-implementations.yarn
@@ -91,5 +91,5 @@ Checking file contents
Does a file match a regular expression?
- IMPLEMENTS THEN file (\S+) matches (\S+)
+ IMPLEMENTS THEN file (\S+) matches (.+)$
grep -e "$MATCH_2" "$DATADIR/$MATCH_1"