Create journal with absolute path when no path is specified (#972)

* create jrnl with abspath

Co-authored-by: = <esrh@netc.eu>
This commit is contained in:
eshrh 2020-06-13 14:08:22 -04:00 committed by GitHub
parent d9951b54c0
commit 2a3fd820b9
4 changed files with 21 additions and 2 deletions

View file

@ -119,3 +119,14 @@ Feature: Basic reading and writing to a journal
When we run "jrnl Life is good"
and we run "jrnl -n 1"
Then the output should contain "Life is good"
Scenario: Installation with relative journal and referencing from another folder
Given we use the config "missingconfig"
When we run "jrnl hello world" and enter
"""
test.txt
n
"""
and we change directory to "features"
and we run "jrnl -n 1"
Then the output should contain "hello world"