From a9bdef939d057763d5b0e643dd5dfd01ee8907f4 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sat, 22 Nov 2014 19:52:38 +0200 Subject: Add preliminary scenario for topics --- yarns/030-topics.yarn | 10 ++++++++++ yarns/900-implementations.yarn | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 yarns/030-topics.yarn 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" -- cgit v1.2.1