summaryrefslogtreecommitdiff
path: root/yarns/020-basic-workflow.yarn
diff options
context:
space:
mode:
Diffstat (limited to 'yarns/020-basic-workflow.yarn')
-rw-r--r--yarns/020-basic-workflow.yarn9
1 files changed, 6 insertions, 3 deletions
diff --git a/yarns/020-basic-workflow.yarn b/yarns/020-basic-workflow.yarn
index fc1c756..d86ab0b 100644
--- a/yarns/020-basic-workflow.yarn
+++ b/yarns/020-basic-workflow.yarn
@@ -12,16 +12,19 @@ invoked, because it'd be difficult to control the editor.
SCENARIO add a simple note
GIVEN an empty journal in SRC
AND the time is 2014-11-22 17:30:45
- WHEN I run jt new TITLE
+ WHEN I run jt new TITLE-TRÖÖT
THEN file SRC/drafts/0.mdwn exists
- AND file SRC/drafts/0.mdwn matches title="TITLE"
+ AND file SRC/drafts/0.mdwn matches title="TITLE-TRÖÖT"
+
+(Note that we use a title with non-ASCII characters to make sure jt
+handles that.)
This is where the user would normally use their editor to edit the
draft, and exit the editor when done.
WHEN I run jt finish
THEN file SRC/drafts/0.mdwn doesn't exist
- AND file SRC/notes/2014/11/22/title.mdwn exists
+ AND file SRC/notes/2014/11/22/title-tr_t.mdwn exists
This is how you create a note, in the simplest case. A more complex
case is when there's more than one draft at a time.