From 46b7a64549e485d8139ee9403ef1363a25472c14 Mon Sep 17 00:00:00 2001 From: Micah Jerome Ellison Date: Sat, 18 Feb 2023 14:41:09 -0800 Subject: [PATCH] Reconcile tests with new error message when clearing editor in edit mode --- tests/bdd/features/change_time.feature | 2 +- tests/bdd/features/write.feature | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/bdd/features/change_time.feature b/tests/bdd/features/change_time.feature index edef2a4c..fa458487 100644 --- a/tests/bdd/features/change_time.feature +++ b/tests/bdd/features/change_time.feature @@ -231,7 +231,7 @@ Feature: Change entry times in journal Y N Y - Then the error output should contain "No entry to save" + Then the error output should contain "No text received from editor. Were you trying to delete all the entries?" And the editor should have been called When we run "jrnl -99 --short" Then the output should be diff --git a/tests/bdd/features/write.feature b/tests/bdd/features/write.feature index 7796dde0..d1baa4ca 100644 --- a/tests/bdd/features/write.feature +++ b/tests/bdd/features/write.feature @@ -76,12 +76,12 @@ Feature: Writing new entries. | basic_dayone.yaml | | basic_folder.yaml | - Scenario Outline: Writing an empty entry from the editor should yield "No entry to save" message + Scenario Outline: Clearing the editor's contents should yield "No text received" message Given we use the config "" - And we append nothing to the editor if opened + And we write nothing to the editor if opened And we use the password "test" if prompted When we run "jrnl --edit" - Then the error output should contain "No edits to save, because nothing was changed" + Then the error output should contain "No text received from editor. Were you trying to delete all the entries?" And the editor should have been called Examples: configs