move tests to be more behavior driven

This commit is contained in:
Jonathan Wren 2020-09-19 11:51:39 -07:00
parent d1692ab771
commit 607aa7a5a1
No known key found for this signature in database
GPG key ID: 43D5FF8722E7F68A
3 changed files with 24 additions and 21 deletions

View file

@ -218,3 +218,14 @@ Feature: Custom formats
Given we use the config "bug780.yaml"
When we run "jrnl --short"
Then we should get no error
Scenario: --short displays the short version of entries (only the title)
Given we use the config "basic.yaml"
When we run "jrnl -on 2013-06-10 --short"
Then the output should be "2013-06-10 15:40 Life is good."
Scenario: -s displays the short version of entries (only the title)
Given we use the config "basic.yaml"
When we run "jrnl -on 2013-06-10 -s"
Then the output should be "2013-06-10 15:40 Life is good."