From 3e801f1b10145510ee43a09ed36a629cb3e618ee Mon Sep 17 00:00:00 2001 From: Micah Jerome Ellison Date: Sat, 21 Aug 2021 12:59:37 -0700 Subject: [PATCH] Add failing test for new error message about unencryptable journals --- tests/bdd/features/encrypt.feature | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/bdd/features/encrypt.feature b/tests/bdd/features/encrypt.feature index 31d53520..cb7cc55b 100644 --- a/tests/bdd/features/encrypt.feature +++ b/tests/bdd/features/encrypt.feature @@ -40,3 +40,12 @@ Feature: Encrypting and decrypting journals Then we should be prompted for a password And the output should contain "2013-06-10 15:40 Life is good" + Scenario Outline: Running jrnl with encrypt: true on unencryptable journals + Given we use the config "" + When we run "jrnl here is a new entry" + Then the error output should contain "is not encrypted" + + Examples: configs + | config_file | + | basic_folder.yaml | + | basic_dayone.yaml |