From 37377b90f22d4792d28768fe65f1c79c47f20e5d Mon Sep 17 00:00:00 2001 From: Richard Schneider Date: Fri, 11 Nov 2022 16:02:39 -0600 Subject: [PATCH] Add test for #1639 --- tests/bdd/features/change_time.feature | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tests/bdd/features/change_time.feature b/tests/bdd/features/change_time.feature index 6bcf8fe7..17c62688 100644 --- a/tests/bdd/features/change_time.feature +++ b/tests/bdd/features/change_time.feature @@ -241,3 +241,22 @@ Feature: Change entry times in journal | basic_onefile.yaml | | basic_folder.yaml | # | basic_dayone.yaml | @todo + + + Scenario Outline: --change-time with --edit and no selected entries doesn't overwrite journal + Given we use the config "" + And we write nothing to the editor if opened + And we use the password "test" if prompted + When we run "jrnl -on tomorrow --change-time '2022-04-23 10:30' --edit" + #Then the error output should contain "No entry to modify" + When we run "jrnl -99 --short" + Then the output should be + 2020-08-29 11:11 Entry the first. + 2020-08-31 14:32 A second entry in what I hope to be a long series. + 2020-09-24 09:14 The third entry finally after weeks without writing. + + Examples: Configs + | config_file | + | basic_onefile.yaml | + | basic_folder.yaml | + # | basic_dayone.yaml | @todo