From 18ba16ad66aed4eb048840881000de5b599f0c17 Mon Sep 17 00:00:00 2001 From: Greg Bodnar Date: Sat, 3 Aug 2019 16:48:10 +1200 Subject: [PATCH] Add failing test for configuring an encrypted journal --- features/data/configs/multiple.yaml | 3 +++ features/multiple_journals.feature | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/features/data/configs/multiple.yaml b/features/data/configs/multiple.yaml index 1bbb872f..2e282232 100644 --- a/features/data/configs/multiple.yaml +++ b/features/data/configs/multiple.yaml @@ -9,6 +9,9 @@ journals: ideas: features/journals/nothing.journal simple: features/journals/simple.journal work: features/journals/work.journal + new_encrypted: + encrypt: true + journal: features/journals/new_encrypted.journal linewrap: 80 password: '' tagsymbols: '@' diff --git a/features/multiple_journals.feature b/features/multiple_journals.feature index fb26eef8..af032b03 100644 --- a/features/multiple_journals.feature +++ b/features/multiple_journals.feature @@ -39,3 +39,8 @@ Feature: Multiple journals Given we use the config "bug343.yaml" When we run "jrnl a long day in the office" Then we should see the message "No default journal configured" + + Scenario: Don't crash if no file exists for a configured encrypted journal + Given we use the config "multiple.yaml" + When we run "jrnl new_encrypted Adding first entry" + Then journal "new_encrypted" should have 1 entry