mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-07-06 16:26:13 +02:00
move tests to be more behavior driven
This commit is contained in:
parent
e3f3904cf7
commit
80bc2ae4ae
12 changed files with 228 additions and 236 deletions
|
@ -119,3 +119,27 @@ Feature: Tagging
|
|||
| (2) ???
|
||||
| (3) PROFIT!
|
||||
"""
|
||||
|
||||
Scenario: Loading tags from a DayOne Journal
|
||||
Given we use the config "dayone.yaml"
|
||||
When we run "jrnl --tags"
|
||||
Then the output should be
|
||||
"""
|
||||
@work : 1
|
||||
@play : 1
|
||||
"""
|
||||
|
||||
Scenario: Saving tags from a DayOne Journal
|
||||
Given we use the config "dayone.yaml"
|
||||
When we run "jrnl A hard day at @work"
|
||||
And we run "jrnl --tags"
|
||||
Then the output should be
|
||||
"""
|
||||
@work : 2
|
||||
@play : 1
|
||||
"""
|
||||
|
||||
Scenario: Filtering by tags from a DayOne Journal
|
||||
Given we use the config "dayone.yaml"
|
||||
When we run "jrnl @work"
|
||||
Then the output should be "2013-05-17 11:39 This entry has tags!"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue