Test for the creation of all the expected files

The test previously only tested that one of the expected files was
created.
This commit is contained in:
Thibaud Chupin 2024-03-23 20:43:07 +01:00
parent 6b742fd412
commit 8d9c27ffd6

View file

@ -20,10 +20,11 @@ Feature: Journals iteracting with the file system in a way that users can see
Scenario: Adding multiple entries to a Folder journal should generate multiple date files Scenario: Adding multiple entries to a Folder journal should generate multiple date files
Given we use the config "empty_folder.yaml" Given we use the config "empty_folder.yaml"
When we run "jrnl 23 July 2013: Testing folder journal." When we run "jrnl 23 July 2013: Testing folder journal."
And we run "jrnl 3/7/2014: Second entry of journal." And we run "jrnl 5/3/2014: Second entry of journal."
Then we should get no error Then we should get no error
And the journal directory should contain And the journal directory should contain
2013/07/23.txt 2013/07/23.txt
2014/05/03.txt
Scenario: If the journal and its parent directory don't exist, they should be created Scenario: If the journal and its parent directory don't exist, they should be created
Given we use the config "missing_directory.yaml" Given we use the config "missing_directory.yaml"