summaryrefslogtreecommitdiff
path: root/yarns/030-topics.yarn
blob: cad687c147181029c3a1909b28047883d6891f13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Using Topics
============

A topic is implemented as a wiki page to which journal entries link.
First we create a topic page:

    SCENARIO create and use topic page
    GIVEN an empty journal in SRC
    WHEN I run jt new-topic research/2014/dishwasher Dishwasher
    THEN file SRC/research/2014/dishwasher.mdwn matches title="Dishwasher"

After this, we can create a new journal entry that belongs to the
topic.

    GIVEN the time is 2014-11-20 20:04:08
    WHEN I run jt new --topic=research/2014/dishwasher TITLE
    THEN file SRC/drafts/0.mdwn matches research/2014/dishwasher

We should get an error if the topic doesn't exist.

    WHEN I try to run jt new --topic=does/not/exist YEEHAA
    THEN it fails