Skip to content

Commit

Permalink
Test for the creation of all the expected files
Browse files Browse the repository at this point in the history
The test previously only tested that one of the expected files was
created.
  • Loading branch information
comkieffer committed May 25, 2024
1 parent 6b742fd commit 8d9c27f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/bdd/features/file_storage.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 8d9c27f

Please sign in to comment.