From 8d9c27ffd69ec2ac968d63e78216049db5a3965d Mon Sep 17 00:00:00 2001 From: Thibaud Chupin Date: Sat, 23 Mar 2024 20:43:07 +0100 Subject: [PATCH] Test for the creation of all the expected files The test previously only tested that one of the expected files was created. --- tests/bdd/features/file_storage.feature | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/bdd/features/file_storage.feature b/tests/bdd/features/file_storage.feature index 68e5a4f51..d56693a43 100644 --- a/tests/bdd/features/file_storage.feature +++ b/tests/bdd/features/file_storage.feature @@ -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 Given we use the config "empty_folder.yaml" 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 And the journal directory should contain 2013/07/23.txt + 2014/05/03.txt Scenario: If the journal and its parent directory don't exist, they should be created Given we use the config "missing_directory.yaml"