summaryrefslogtreecommitdiff
path: root/yarns/020-basic-workflow.yarn
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2016-02-16 17:13:48 +0200
committerLars Wirzenius <liw@liw.fi>2016-02-16 17:13:48 +0200
commite133e66ac3255a3abf88e0bea5a9177f21a8bf0f (patch)
treed959840c0408959089ce3c0b5bcc8ffcf7379a22 /yarns/020-basic-workflow.yarn
parentb362d4ddb335dda487417ff1a59e97946c2c2819 (diff)
downloadjt-liw/nonascii.tar.gz
Handle unicode more consistentlyliw/nonascii
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.