diff options
Diffstat (limited to 'jt.md')
-rw-r--r-- | jt.md | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -247,6 +247,32 @@ and draft 0 in jrnl contains "custom new entry template" This is a custom new entry template. ~~~ +## Use topic pages + +Verify that we can create a new topic page and a new entry referring +to that topic page. + +~~~scenario +given an installed jt + +when I run jt2 --dirname jrnl init default "My test journal" +then command is successful + +when I try to run jt2 --editor=none --dirname=jrnl new --topic foo "Abracadabra" +then command fails +then stderr contains "foo" + +when I run jt2 --editor=none --dirname=jrnl new-topic foo "Things about Foo" +then command is successful +then file jrnl/foo.mdwn contains "Things about Foo" + +when I run jt2 --editor=none --dirname=jrnl new --topic foo "Abracadabra" +then command is successful +and there is one draft in jrnl +and draft 0 in jrnl links to "foo" +~~~ + + # Colophon This document is meant to be processed with the [Subplot][] program to |