mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
Tests for tagging
This commit is contained in:
parent
e20ae39bf3
commit
88d4c52568
4 changed files with 28 additions and 0 deletions
14
features/data/configs/tags-216.json
Normal file
14
features/data/configs/tags-216.json
Normal 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": "@"
|
||||
}
|
2
features/data/journals/tags-216.journal
Normal file
2
features/data/journals/tags-216.journal
Normal 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#).
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
"""
|
||||
|
|
Loading…
Add table
Reference in a new issue