diff options
Diffstat (limited to 'subplot/jt.yaml')
-rw-r--r-- | subplot/jt.yaml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/subplot/jt.yaml b/subplot/jt.yaml index 77b8c82..5ed6ed3 100644 --- a/subplot/jt.yaml +++ b/subplot/jt.yaml @@ -8,9 +8,36 @@ - when: I invoke jt is-journal {dirname} function: run_jt_is_journal +- when: I invoke jt new "{title:text}" --editor=none --dirname={dirname} + function: run_jt_new + +- when: I invoke jt finish --dirname={dirname} + function: run_jt_finish + +- when: I edit draft {draftno} in {dirname} to also contain "{text}" + function: edit_draft + - then: directory {dirname} exists function: is_directory - then: output contains "(?P<pattern>.*)" regex: true function: output_contains + +- then: there are no drafts in {dirname} + function: journal_has_no_drafts + +- then: there is one draft in {dirname} + function: journal_has_one_draft + +- then: draft {draftno} in {dirname} contains "{pattern}" + function: draft_contains_string + +- then: there are no journal entries in {dirname} + function: journal_has_no_entries + +- then: there is one journal entry in {dirname}, at {variable} + function: journal_has_one_entry + +- then: file <{variable}> contains "{pattern}" + function: file_contains |