add more tests, add more functionality to behave for calling mock editor

This commit is contained in:
Jonathan Wren 2020-09-05 15:26:39 -07:00
parent 3c10766372
commit b0be986759
No known key found for this signature in database
GPG key ID: 43D5FF8722E7F68A
9 changed files with 199 additions and 146 deletions

11
features/config.feature Normal file
View 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'?"