diff options
author | Lars Wirzenius <liw@liw.fi> | 2014-11-22 17:54:49 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2014-11-22 17:54:49 +0200 |
commit | 25dcc4b2234ddb768b76a5f4bd928a4817022bb4 (patch) | |
tree | 13c89e1ff9b33135658f619c29c129859580ba4e /yarns/020-basic-workflow.yarn | |
parent | 85a797cc7339e9d49d0d6eb75018d42fb9897113 (diff) | |
download | jt-25dcc4b2234ddb768b76a5f4bd928a4817022bb4.tar.gz |
Add scenario for multiple drafts
Diffstat (limited to 'yarns/020-basic-workflow.yarn')
-rw-r--r-- | yarns/020-basic-workflow.yarn | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/yarns/020-basic-workflow.yarn b/yarns/020-basic-workflow.yarn index 2572076..07f4a7c 100644 --- a/yarns/020-basic-workflow.yarn +++ b/yarns/020-basic-workflow.yarn @@ -23,4 +23,24 @@ draft, and exit the editor when done. THEN file SRC/drafts/0.mdwn doesn't exist AND file SRC/notes/2014/11/22/title.mdwn exists -This is how you create a note, in the simplest case. +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. + + SCENARIO multiple drafts + GIVEN an empty journal in SRC + AND the time is 2014-11-22 17:30:45 + + WHEN I run jt new FIRST + THEN file SRC/drafts/0.mdwn matches title="FIRST" + + WHEN I run jt new SECOND + THEN file SRC/drafts/1.mdwn matches title="SECOND" + +Now, finishing drafts requires naming them explicitly. + + WHEN I try to run jt finish + THEN it fails + + WHEN I run jt finish 1 + THEN file SRC/drafts/0.mdwn matches title="FIRST" + AND file SRC/notes/2014/11/22/second.mdwn matches title="SECOND" |