Fix editor config when an argument with a space is used

This commit is contained in:
Jrnl Bot 2020-05-16 18:40:15 -07:00
parent cdaf1f5a36
commit 455720f788
4 changed files with 44 additions and 4 deletions

View file

@ -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