Converts tests to YAML

This commit is contained in:
Manuel Ebert 2014-09-12 15:28:12 -07:00
parent 79f87abd76
commit be009b08b4
28 changed files with 136 additions and 158 deletions

View file

@ -1,7 +1,7 @@
Feature: DayOne Ingetration
Scenario: Loading a DayOne Journal
Given we use the config "dayone.json"
Given we use the config "dayone.yaml"
When we run "jrnl -from 'feb 2013'"
Then we should get no error
and the output should be
@ -14,13 +14,13 @@ Feature: DayOne Ingetration
"""
Scenario: Entries without timezone information will be interpreted as in the current timezone
Given we use the config "dayone.json"
Given we use the config "dayone.yaml"
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"
Given we use the config "dayone.yaml"
When we run "jrnl 01 may 1979: Being born hurts."
and we run "jrnl -until 1980"
Then the output should be
@ -29,7 +29,7 @@ Feature: DayOne Ingetration
"""
Scenario: Loading tags from a DayOne Journal
Given we use the config "dayone.json"
Given we use the config "dayone.yaml"
When we run "jrnl --tags"
Then the output should be
"""
@ -38,7 +38,7 @@ Feature: DayOne Ingetration
"""
Scenario: Saving tags from a DayOne Journal
Given we use the config "dayone.json"
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
@ -48,7 +48,7 @@ Feature: DayOne Ingetration
"""
Scenario: Filtering by tags from a DayOne Journal
Given we use the config "dayone.json"
Given we use the config "dayone.yaml"
When we run "jrnl @work"
Then the output should be
"""