Add scenario for tags export

This commit is contained in:
Stav Shamir 2020-01-26 14:08:31 +02:00
parent 3c1496eed2
commit 2bd4bc30b3

View file

@ -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
"""