mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-07-07 16:56:13 +02:00
Fix editor config when an argument with a space is used
This commit is contained in:
parent
cdaf1f5a36
commit
455720f788
4 changed files with 44 additions and 4 deletions
|
@ -39,6 +39,15 @@ Feature: Basic reading and writing to a journal
|
|||
When we open the editor and enter nothing
|
||||
Then we should see the message "[Nothing saved to file]"
|
||||
|
||||
Scenario: Sending an argument with spaces to the editor should work
|
||||
Given we use the config "editor-args.yaml"
|
||||
When we open the editor and enter "lorem ipsum"
|
||||
Then the editor should have been called with 5 arguments
|
||||
And the editor arguments should contain "vim"
|
||||
And the editor arguments should contain "-f"
|
||||
And the editor arguments should contain "-c"
|
||||
And the editor arguments should contain "setf markdown"
|
||||
|
||||
Scenario: Writing an empty entry from the command line
|
||||
Given we use the config "basic.yaml"
|
||||
When we run "jrnl" and enter nothing
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue