diff --git a/features/core.feature b/features/core.feature index b9a35a4d..94d3c2b8 100644 --- a/features/core.feature +++ b/features/core.feature @@ -6,29 +6,10 @@ Feature: Core functionality of jrnl outside of actually handling journals Then we should get no error Then the output should contain "version" - Scenario: --short displays the short version of entries (only the title) - Given we use the config "basic.yaml" - When we run "jrnl -on 2013-06-10 --short" - Then the output should be "2013-06-10 15:40 Life is good." - - Scenario: -s displays the short version of entries (only the title) - Given we use the config "basic.yaml" - When we run "jrnl -on 2013-06-10 -s" - Then the output should be "2013-06-10 15:40 Life is good." - - Scenario: Installation with relative journal and referencing from another folder - 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" - Scenario: --diagnostic runs without exceptions When we run "jrnl --diagnostic" Then the output should contain "jrnl" And the output should contain "Python" + @todo + Scenario: --list outputs to user without exceptions diff --git a/features/file_storage.feature b/features/file_storage.feature index 1bede588..b6982e74 100644 --- a/features/file_storage.feature +++ b/features/file_storage.feature @@ -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" diff --git a/features/format.feature b/features/format.feature index bfbde83f..c0757d2d 100644 --- a/features/format.feature +++ b/features/format.feature @@ -218,3 +218,14 @@ Feature: Custom formats Given we use the config "bug780.yaml" When we run "jrnl --short" Then we should get no error + + Scenario: --short displays the short version of entries (only the title) + Given we use the config "basic.yaml" + When we run "jrnl -on 2013-06-10 --short" + Then the output should be "2013-06-10 15:40 Life is good." + + Scenario: -s displays the short version of entries (only the title) + Given we use the config "basic.yaml" + When we run "jrnl -on 2013-06-10 -s" + Then the output should be "2013-06-10 15:40 Life is good." +