Requested changes PR 1482

This commit is contained in:
Jonathan van der Steege 2022-05-28 22:18:23 +02:00
parent 28a278695f
commit 658fb8eb4e
4 changed files with 16 additions and 11 deletions

View file

@ -31,7 +31,8 @@ Feature: Journals iteracting with the file system in a way that users can see
When we run "jrnl -99 --short"
Then the output should contain "This is a new entry in my journal"
Scenario: If the directory for a Folder journal ending in a slash ('/' or '\') doesn't exist, then it should be created
@on_posix
Scenario: If the directory for a Folder journal ending in a slash ('/') doesn't exist, then it should be created
Given we use the config "missing_directory.yaml"
Then the journal "endslash" directory should not exist
When we run "jrnl endslash This is a new entry in my journal"
@ -39,6 +40,15 @@ Feature: Journals iteracting with the file system in a way that users can see
When we run "jrnl endslash -1"
Then the output should contain "This is a new entry in my journal"
@on_win
Scenario: If the directory for a Folder journal ending in a backslash ('\') doesn't exist, then it should be created
Given we use the config "missing_directory.yaml"
Then the journal "endbackslash" directory should not exist
When we run "jrnl endbackslash This is a new entry in my journal"
Then the journal "endbackslash" directory should exist
When we run "jrnl endbackslash -1"
Then the output should contain "This is a new entry in my journal"
Scenario: Creating journal with relative path should update to absolute path
Given we use no config
When we run "jrnl hello world" and enter