mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
Reconcile tests with new error message when clearing editor in edit mode
This commit is contained in:
parent
cac3b43e19
commit
46b7a64549
2 changed files with 4 additions and 4 deletions
|
@ -231,7 +231,7 @@ Feature: Change entry times in journal
|
||||||
Y
|
Y
|
||||||
N
|
N
|
||||||
Y
|
Y
|
||||||
Then the error output should contain "No entry to save"
|
Then the error output should contain "No text received from editor. Were you trying to delete all the entries?"
|
||||||
And the editor should have been called
|
And the editor should have been called
|
||||||
When we run "jrnl -99 --short"
|
When we run "jrnl -99 --short"
|
||||||
Then the output should be
|
Then the output should be
|
||||||
|
|
|
@ -76,12 +76,12 @@ Feature: Writing new entries.
|
||||||
| basic_dayone.yaml |
|
| basic_dayone.yaml |
|
||||||
| basic_folder.yaml |
|
| basic_folder.yaml |
|
||||||
|
|
||||||
Scenario Outline: Writing an empty entry from the editor should yield "No entry to save" message
|
Scenario Outline: Clearing the editor's contents should yield "No text received" message
|
||||||
Given we use the config "<config_file>"
|
Given we use the config "<config_file>"
|
||||||
And we append nothing to the editor if opened
|
And we write nothing to the editor if opened
|
||||||
And we use the password "test" if prompted
|
And we use the password "test" if prompted
|
||||||
When we run "jrnl --edit"
|
When we run "jrnl --edit"
|
||||||
Then the error output should contain "No edits to save, because nothing was changed"
|
Then the error output should contain "No text received from editor. Were you trying to delete all the entries?"
|
||||||
And the editor should have been called
|
And the editor should have been called
|
||||||
|
|
||||||
Examples: configs
|
Examples: configs
|
||||||
|
|
Loading…
Add table
Reference in a new issue