mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-06-29 05:56:14 +02:00
Implement test to check editor temporary filename
Co-authored-by: Jonathan Wren <jonathan@nowandwren.com>
This commit is contained in:
parent
5d4d68fe32
commit
512fb63e1f
2 changed files with 12 additions and 3 deletions
|
@ -44,9 +44,9 @@ Feature: Journals iteracting with the file system in a way that users can see
|
|||
Given we use the config "editor.yaml"
|
||||
When we run "jrnl --edit"
|
||||
Then the editor should have been called
|
||||
Then the temporary filename suffix should be ".jrnl"
|
||||
Then the editor filename should end with ".jrnl"
|
||||
|
||||
Scenario: the temporary filename suffix should be "-{template_filename}"
|
||||
Given we use the config "editor_markdown_extension.yaml"
|
||||
When we run "jrnl --edit"
|
||||
Then the temporary filename suffix should be "-extension.md"
|
||||
Then the editor filename should end with "-extension.md"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue