From 2bd4bc30b3d2fd4a41dc4ef6203072668af63465 Mon Sep 17 00:00:00 2001 From: Stav Shamir Date: Sun, 26 Jan 2020 14:08:31 +0200 Subject: [PATCH] Add scenario for tags export --- features/exporting.feature | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/features/exporting.feature b/features/exporting.feature index 5fcdf33f..6e7c0e12 100644 --- a/features/exporting.feature +++ b/features/exporting.feature @@ -89,3 +89,13 @@ Feature: Exporting a Journal Then the output should be a valid XML string And "entries" node in the xml output should have 2 elements And "tags" in the xml output should contain ["@idea", "@journal", "@dan"] + + Scenario: Exporting tags + Given we use the config "tags.yaml" + When we run "jrnl --export tags" + Then the output should be + """ + @idea : 2 + @journal : 1 + @dan : 1 + """