mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-07-06 08:26:12 +02:00
add more tests, add more functionality to behave for calling mock editor
This commit is contained in:
parent
3c10766372
commit
b0be986759
9 changed files with 199 additions and 146 deletions
11
features/config.feature
Normal file
11
features/config.feature
Normal file
|
@ -0,0 +1,11 @@
|
|||
Feature: Reading & writing the config 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 one editor argument should be "vim"
|
||||
And one editor argument should be "-f"
|
||||
And one editor argument should be "-c"
|
||||
And one editor argument should match "'?setf markdown'?"
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue