Standardize and clean up star and write features

This commit is contained in:
Micah Jerome Ellison 2020-09-24 19:27:07 -07:00
parent 379a63c8f1
commit 66b9f5a461
3 changed files with 81 additions and 79 deletions

View file

@ -1,20 +1,20 @@
Feature: Starring entries
Scenario Outline: Starring an entry will mark it in the journal file
Given we use the config <config_file>
Given we use the config "<config_file>.yaml"
When we run "jrnl 20 july 2013 *: Best day of my life!"
Then we should see the message "Entry added"
When we run "jrnl -on 2013-07-20 -starred"
Then the output should contain "2013-07-20 09:00 Best day of my life!"
Examples: configs
| config_file |
| "basic.yaml" |
| "empty_folder.yaml" |
| "dayone.yaml" |
| config_file |
| basic |
| empty_folder |
| dayone |
Scenario Outline: Filtering by starred entries
Given we use the config <config_file>
Scenario Outline: Filtering by starred entries will show only starred entries
Given we use the config "<config_file>.yaml"
When we run "jrnl -starred"
Then the output should be empty
When we run "jrnl 20 july 2013 *: Best day of my life!"
@ -22,10 +22,10 @@ Feature: Starring entries
Then the output should be "2013-07-20 09:00 Best day of my life!"
Examples: configs
| config_file |
| "basic.yaml" |
| "empty_folder.yaml" |
| "dayone_empty.yaml" |
| config_file |
| basic |
| empty_folder |
| dayone_empty |
Scenario: Starring an entry will mark it in an encrypted journal
Given we use the config "encrypted.yaml"