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