mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-07-04 15:36:14 +02:00
Merge branch 'jrnl-org:develop' into develop
This commit is contained in:
commit
420a9fc999
5 changed files with 53 additions and 33 deletions
|
@ -73,12 +73,12 @@ Feature: Writing new entries.
|
|||
| basic_dayone.yaml |
|
||||
| basic_folder.yaml |
|
||||
|
||||
Scenario Outline: Writing an empty entry from the editor should yield "Nothing saved to file" message
|
||||
Scenario Outline: Writing an empty entry from the editor should yield "No entry to save" message
|
||||
Given we use the config "<config_file>"
|
||||
And we write nothing to the editor if opened
|
||||
And we use the password "test" if prompted
|
||||
When we run "jrnl --edit"
|
||||
Then the error output should contain "Nothing saved to file"
|
||||
Then the error output should contain "No entry to save, because no text was received"
|
||||
And the editor should have been called
|
||||
|
||||
Examples: configs
|
||||
|
@ -89,6 +89,20 @@ Feature: Writing new entries.
|
|||
| basic_encrypted.yaml |
|
||||
| basic_onefile.yaml |
|
||||
|
||||
Scenario Outline: Writing an empty entry from the command line should yield "No entry to save" message
|
||||
Given we use the config "<config_file>"
|
||||
And we use the password "test" if prompted
|
||||
When we run "jrnl" and enter "\x04"
|
||||
Then the error output should contain "No entry to save, because no text was received"
|
||||
When we run "jrnl" and enter " \t \n \x04"
|
||||
Then the error output should contain "No entry to save, because no text was received"
|
||||
|
||||
Examples: configs
|
||||
| config_file |
|
||||
| basic_onefile.yaml |
|
||||
| basic_encrypted.yaml |
|
||||
| basic_folder.yaml |
|
||||
| basic_dayone.yaml |
|
||||
|
||||
Scenario Outline: Writing an empty entry from the command line with no editor should yield nothing
|
||||
Given we use the config "<config_file>"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue