move tests to be more behavior driven

This commit is contained in:
Jonathan Wren 2020-09-19 11:51:39 -07:00
parent d1692ab771
commit 607aa7a5a1
No known key found for this signature in database
GPG key ID: 43D5FF8722E7F68A
3 changed files with 24 additions and 21 deletions

View file

@ -33,3 +33,14 @@ Feature: Journals iteracting with the file system in a way that users can see
When we run "jrnl -n 1"
Then the output should contain "This is a new entry in my journal"
And the journal should have 1 entry
Scenario: Creating journal with relative path should update to absolute path
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"