mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-17 19:48:31 +02:00
Add test for modifying an entry rather than replacing it
This commit is contained in:
parent
63af9a0607
commit
218ebe180d
1 changed files with 16 additions and 1 deletions
|
@ -265,7 +265,7 @@ Feature: Writing new entries.
|
||||||
#| basic_dayone.yaml | @todo
|
#| basic_dayone.yaml | @todo
|
||||||
|
|
||||||
|
|
||||||
Scenario Outline: Correctly count modification when running --edit on a single entry
|
Scenario Outline: Correctly count modification when running --edit to replace a single entry
|
||||||
Given we use the config "<config_file>"
|
Given we use the config "<config_file>"
|
||||||
And we use the password "test" if prompted
|
And we use the password "test" if prompted
|
||||||
And we write to the editor if opened
|
And we write to the editor if opened
|
||||||
|
@ -282,3 +282,18 @@ Feature: Writing new entries.
|
||||||
#| basic_dayone.yaml | @todo
|
#| basic_dayone.yaml | @todo
|
||||||
|
|
||||||
|
|
||||||
|
Scenario Outline: Correctly count modification when running --edit on whole journal and adding to last entry
|
||||||
|
Given we use the config "<config_file>"
|
||||||
|
And we use the password "test" if prompted
|
||||||
|
And we append to the editor if opened
|
||||||
|
This is a small addendum to my latest entry.
|
||||||
|
When we run "jrnl --edit"
|
||||||
|
Then the output should contain
|
||||||
|
[1 entry modified]
|
||||||
|
|
||||||
|
Examples: configs
|
||||||
|
| config_file |
|
||||||
|
| basic_onefile.yaml |
|
||||||
|
| basic_encrypted.yaml |
|
||||||
|
| basic_folder.yaml |
|
||||||
|
#| basic_dayone.yaml | @todo
|
||||||
|
|
Loading…
Add table
Reference in a new issue