From 35b9827eb17b8a5d20ebc528b75878ceca1f5c40 Mon Sep 17 00:00:00 2001 From: flight16 Date: Mon, 13 Apr 2015 23:22:52 +0900 Subject: [PATCH] Fix breaking test submitted in b2a7d1f30e3867354196fc7ef6a365820dbc26f2. --- features/core.feature | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/features/core.feature b/features/core.feature index 7ad048f5..da22dfd7 100644 --- a/features/core.feature +++ b/features/core.feature @@ -48,10 +48,13 @@ Feature: Basic reading and writing to a journal Then we should get no error Then the output should contain "version" + # The quotes around the date in the second run are intentional. Without + # them, the behave will fail because it finds duplicate output. I couldn't + # track down the issue after an hour of debugging, so I've submitted as-is. Scenario: --short and -s display the short version of entries (only the title) - Given we use the config "basic.yaml" - When we run "jrnl -on 2013-06-10 --short" - Then the output should be "2013-06-10 15:40 Life is good." - When we run "jrnl -on 2013-06-10 -s" - Then the output should be "2013-06-10 15:40 Life is good." + Given we use the config "basic.yaml" + When we run "jrnl -on 2013-06-10 --short" + Then the output should be "2013-06-10 15:40 Life is good." + When we run "jrnl -on '2013-06-10' -s" + Then the output should be "2013-06-10 15:40 Life is good."