added test

This commit is contained in:
Eshan Ramesh 2020-05-24 09:53:11 -04:00
parent d5a09bd6d7
commit 6b1bc963e0

View file

@ -26,6 +26,12 @@ Feature: Basic reading and writing to a journal
| There is a blank line above this. | There is a blank line above this.
""" """
Scenario: Multiline entry with punctuation
Given we use the config "basic.yaml"
When we run "jrnl This is. the title\\n This is the second line"
and we run "jrnl -n 1"
Then the output should contain "This is. the title"
Scenario: Writing an entry from command line Scenario: Writing an entry from command line
Given we use the config "basic.yaml" Given we use the config "basic.yaml"
When we run "jrnl 23 july 2013: A cold and stormy day. I ate crisps on the sofa." When we run "jrnl 23 july 2013: A cold and stormy day. I ate crisps on the sofa."
@ -39,6 +45,8 @@ Feature: Basic reading and writing to a journal
When we open the editor and enter nothing When we open the editor and enter nothing
Then we should see the message "[Nothing saved to file]" Then we should see the message "[Nothing saved to file]"
Scenario: Writing an empty entry from the command line Scenario: Writing an empty entry from the command line
Given we use the config "basic.yaml" Given we use the config "basic.yaml"
When we run "jrnl" and enter nothing When we run "jrnl" and enter nothing