diff options
author | Lars Wirzenius <liw@liw.fi> | 2014-11-22 19:52:38 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2014-11-22 19:52:38 +0200 |
commit | a9bdef939d057763d5b0e643dd5dfd01ee8907f4 (patch) | |
tree | aa4036c89e512203c44bccd819ec68e3ec42500d /yarns | |
parent | de3b41b647d6bafb92d0f368660c6ca92056d7f4 (diff) | |
download | jt-a9bdef939d057763d5b0e643dd5dfd01ee8907f4.tar.gz |
Add preliminary scenario for topics
Diffstat (limited to 'yarns')
-rw-r--r-- | yarns/030-topics.yarn | 10 | ||||
-rw-r--r-- | yarns/900-implementations.yarn | 2 |
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" |