From 82aa081b91f95f7cd0f40820945e93786a6f395c Mon Sep 17 00:00:00 2001 From: Manuel Ebert Date: Wed, 19 Mar 2014 14:49:28 -0700 Subject: [PATCH] Tests for filtering by tags --- features/dayone.feature | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/features/dayone.feature b/features/dayone.feature index 890af8ac..23a3249d 100644 --- a/features/dayone.feature +++ b/features/dayone.feature @@ -33,8 +33,8 @@ Feature: DayOne Ingetration When we run "jrnl --tags" Then the output should be """ - work : 1 - play : 1 + @work : 1 + @play : 1 """ Scenario: Saving tags from a DayOne Journal @@ -43,6 +43,14 @@ Feature: DayOne Ingetration and we run "jrnl --tags" Then the output should be """ - work : 2 - play : 1 + @work : 2 + @play : 1 + """ + + Scenario: Filtering by tags from a DayOne Journal + Given we use the config "dayone.json" + When we run "jrnl @work" + Then the output should be + """ + 2013-05-17 11:39 This entry has tags! """