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
db11803791
commit
1dfbfc2eaa
3 changed files with 33 additions and 0 deletions
14
features/data/configs/tags.json
Normal file
14
features/data/configs/tags.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.journal"
|
||||||
|
},
|
||||||
|
"tagsymbols": "@"
|
||||||
|
}
|
7
features/data/journals/tags.journal
Normal file
7
features/data/journals/tags.journal
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
2013-06-09 15:39 I have an @idea:
|
||||||
|
(1) write a command line @journal software
|
||||||
|
(2) ???
|
||||||
|
(3) PROFIT!
|
||||||
|
|
||||||
|
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.
|
12
features/tagging.feature
Normal file
12
features/tagging.feature
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
Feature: Tagging
|
||||||
|
|
||||||
|
Scenario: Displaying tags
|
||||||
|
Given we use the config "tags.json"
|
||||||
|
When we run "jrnl --tags"
|
||||||
|
Then we should get no error
|
||||||
|
and the output should be
|
||||||
|
"""
|
||||||
|
@idea : 2
|
||||||
|
@journal : 1
|
||||||
|
@dan : 1
|
||||||
|
"""
|
Loading…
Add table
Reference in a new issue