From 9bf4e52b2c5765b729bce069fd1b08ff4f64c4cb Mon Sep 17 00:00:00 2001 From: Manuel Ebert Date: Mon, 20 Apr 2015 14:25:20 +0200 Subject: [PATCH] Tests for #343 --- features/data/configs/bug343.yaml | 11 +++++++++++ features/multiple_journals.feature | 5 +++++ 2 files changed, 16 insertions(+) create mode 100644 features/data/configs/bug343.yaml diff --git a/features/data/configs/bug343.yaml b/features/data/configs/bug343.yaml new file mode 100644 index 00000000..d0765f34 --- /dev/null +++ b/features/data/configs/bug343.yaml @@ -0,0 +1,11 @@ +default_hour: 9 +default_minute: 0 +editor: '' +encrypt: false +highlight: true +journals: + simple: features/journals/simple.journal + work: features/journals/work.journal +linewrap: 80 +tagsymbols: '@' +timeformat: '%Y-%m-%d %H:%M' diff --git a/features/multiple_journals.feature b/features/multiple_journals.feature index e78a7c8c..fb26eef8 100644 --- a/features/multiple_journals.feature +++ b/features/multiple_journals.feature @@ -34,3 +34,8 @@ Feature: Multiple journals Then journal "ideas" should not exist When we run "jrnl ideas 23 july 2012: sell my junk on ebay and make lots of money" Then journal "ideas" should have 1 entry + + Scenario: Don't crash if no default journal is specified + 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"