summaryrefslogtreecommitdiff
path: root/jt.md
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-10-15 09:41:20 +0300
committerLars Wirzenius <liw@liw.fi>2020-10-20 08:44:42 +0300
commit02c53afea1ec6c6ae5060e01f908497a01f03981 (patch)
tree99b0dcd07c7826135fe331779f1e927595de3f0e /jt.md
parentb3bcb11938f7bebdc15eef8fdb1e2267d39b2818 (diff)
downloadjt2-02c53afea1ec6c6ae5060e01f908497a01f03981.tar.gz
feat: create new draft, publish it
Diffstat (limited to 'jt.md')
-rw-r--r--jt.md25
1 files changed, 25 insertions, 0 deletions
diff --git a/jt.md b/jt.md
index 6c2eb9b..3295e0f 100644
--- a/jt.md
+++ b/jt.md
@@ -55,6 +55,31 @@ then command fails
~~~
+## Create a new draft and publish it
+
+Verify that we can create a new draft entry for the journal.
+
+~~~scenario
+when I invoke jt init jrnl default "My test journal"
+then command is successful
+and there are no drafts in jrnl
+and there are no journal entries in jrnl
+
+when I invoke jt new "Abracadabra" --editor=none --dirname=jrnl
+then command is successful
+then there is one draft in jrnl
+and draft 0 in jrnl contains "Abracadabra"
+
+when I edit draft 0 in jrnl to also contain "Behold!"
+and I invoke jt finish --dirname=jrnl
+then command is successful
+then there is one journal entry in jrnl, at FILE
+and file <FILE> contains "Abracadabra"
+and file <FILE> contains "Behold!"
+and there are no drafts in jrnl
+~~~
+
+
---
title: "jt&mdash;a journalling tool"