Tests for tagging

This commit is contained in:
Manuel Ebert 2014-07-02 15:34:08 +02:00
parent e20ae39bf3
commit 88d4c52568
4 changed files with 28 additions and 0 deletions

View file

@ -0,0 +1,14 @@
{
"default_hour": 9,
"timeformat": "%Y-%m-%d %H:%M",
"linewrap": 80,
"encrypt": false,
"editor": "",
"default_minute": 0,
"highlight": true,
"password": "",
"journals": {
"default": "features/journals/tags-216.journal"
},
"tagsymbols": "@"
}

View file

@ -0,0 +1,2 @@
2013-06-10 15:40 I programmed for @OS/2.
Almost makes me want to go back to @C++, though. (Still better than @C#).

View file

@ -5,3 +5,4 @@
2013-06-10 15:40 I met with @dan.
As alway's he shared his latest @idea on how to rule the world with me.
inst

View file

@ -20,3 +20,14 @@ Feature: Tagging
@idea : 1
@dan : 1
"""
Scenario: Tags should allow certain special characters
Given we use the config "tags-216.json"
When we run "jrnl --tags"
Then we should get no error
and the output should be
"""
@os/2 : 1
@c++ : 1
@c# : 1
"""