Tests for parsing DayOne entries without Timezone

This commit is contained in:
Manuel Ebert 2013-08-17 13:19:54 -07:00
parent 575026b51d
commit 81e8e26b0a
3 changed files with 22 additions and 7 deletions

View file

@ -2,7 +2,7 @@ Feature: DayOne Ingetration
Scenario: Loading a DayOne Journal
Given we use the config "dayone.json"
When we run "jrnl -until now"
When we run "jrnl -from 'feb 2013'"
Then we should get no error
and the output should be
"""
@ -11,10 +11,14 @@ Feature: DayOne Ingetration
2013-06-17 20:38 This entry has a location.
2013-07-17 11:38 This entry is starred!
2013-08-17 11:37 This is a DayOne entry.
"""
Scenario: Entries without timezone information will be intepreted in the current timezone
Given we use the config "dayone.json"
When we run "jrnl -until 'feb 2013'"
Then we should get no error
and the output should contain "2013-01-17T18:37Z" in the local time
Scenario: Writing into Dayone
Given we use the config "dayone.json"
When we run "jrnl 01 may 1979: Being born hurts."