summaryrefslogtreecommitdiff
path: root/jt.yaml
blob: 22a5c90e34f86fb8a9702fd2458c94b05f6af512 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
- given: a file (?P<filename>\S+)
  function: create_empty_file

- given: an empty journal
  function: create_empty_journal

- then: draft (?P<id>\d+) has title "(?P<title>.+)"
  function: draft_has_title

- then: it fails
  function: jt_failed

- then: there are (?P<count>\d+) drafts
  function: n_drafts

- then: there are (?P<count>\d+) journal entries
  function: n_entries

- then: there are no drafts
  function: no_drafts

- then: there are no journal entries
  function: no_entries

- then: there is 1 draft
  function: one_draft

- then: there is 1 draft, with attachment (?P<filename>\S+)
  function: one_draft_with_attachment

- then: there is 1 journal entry
  function: one_entry

- then: there is 1 journal entry, belonging to (?P<topic>\S+)
  function: one_entry_on_topic

- then: there is 1 journal entry, with attachment (?P<filename>\S+)
  function: one_enry_with_attachment

- then: there there is 1 topic, (?P<topic>\S+), titled "(?P<title>.+)"
  function: one_topic

- when: I run (?P<command>jt .*)
  function: run_jt

- when: I try to run (?P<command>jt .*)
  function: try_jt