mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 16:48:31 +02:00
32 lines
1.4 KiB
Gherkin
32 lines
1.4 KiB
Gherkin
Feature: Zapped bugs should stay dead.
|
|
|
|
Scenario: Writing an entry does not print the entire journal
|
|
# https://github.com/maebert/jrnl/issues/87
|
|
Given we use the config "basic.json"
|
|
When we run "jrnl 23 july 2013: A cold and stormy day. I ate crisps on the sofa."
|
|
Then we should see the message "Entry added"
|
|
When we run "jrnl -n 1"
|
|
Then the output should not contain "Life is good"
|
|
|
|
Scenario: Opening an folder that's not a DayOne folder gives a nice error message
|
|
Given we use the config "empty_folder.json"
|
|
When we run "jrnl Herro"
|
|
Then we should get an error
|
|
Then we should see the message "is a directory, but doesn't seem to be a DayOne journal either"
|
|
|
|
Scenario: Date with time should be parsed correctly
|
|
# https://github.com/maebert/jrnl/issues/117
|
|
Given we use the config "basic.json"
|
|
When we run "jrnl 2013-11-30 15:42: Project Started."
|
|
Then we should see the message "Entry added"
|
|
and the journal should contain "2013-11-30 15:42 Project Started."
|
|
|
|
Scenario: Loading entry with ambiguous time stamp
|
|
#https://github.com/maebert/jrnl/issues/153
|
|
Given we use the config "bug153.json"
|
|
When we run "jrnl -1"
|
|
Then we should get no error
|
|
and the output should be
|
|
"""
|
|
2013-10-27 03:27 Some text.
|
|
"""
|