From b56026d9898646e26ce49666561ba3d797d9d19d Mon Sep 17 00:00:00 2001 From: Micah Jerome Ellison Date: Sat, 22 Jun 2019 13:47:55 -0700 Subject: [PATCH] #5 Removing DayOne tests --- features/dayone.feature | 57 ------------------------------------- features/exporting.feature | 7 ----- features/regression.feature | 25 ---------------- 3 files changed, 89 deletions(-) delete mode 100644 features/dayone.feature diff --git a/features/dayone.feature b/features/dayone.feature deleted file mode 100644 index 6b3ef237..00000000 --- a/features/dayone.feature +++ /dev/null @@ -1,57 +0,0 @@ -Feature: DayOne Ingetration - - Scenario: Loading a DayOne Journal - 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 - """ - 2013-05-17 11:39 This entry has tags! - - 2013-06-17 20:38 This entry has a location. - - 2013-07-17 11:38 This entry is starred! - """ - - @skip - Scenario: Entries without timezone information will be interpreted as in the current timezone - 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.yaml" - When we run "jrnl 01 may 1979: Being born hurts." - and we run "jrnl -until 1980" - Then the output should be - """ - 1979-05-01 09:00 Being born hurts. - """ - - Scenario: Loading tags from a DayOne Journal - Given we use the config "dayone.yaml" - When we run "jrnl --tags" - Then the output should be - """ - @work : 1 - @play : 1 - """ - - Scenario: Saving tags from a DayOne Journal - 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 - """ - @work : 2 - @play : 1 - """ - - Scenario: Filtering by tags from a DayOne Journal - Given we use the config "dayone.yaml" - When we run "jrnl @work" - Then the output should be - """ - 2013-05-17 11:39 This entry has tags! - """ diff --git a/features/exporting.feature b/features/exporting.feature index 78198aa5..1b4285ed 100644 --- a/features/exporting.feature +++ b/features/exporting.feature @@ -20,13 +20,6 @@ Feature: Exporting a Journal and "tags" in the json output should contain "@journal" and "tags" in the json output should not contain "@dan" - Scenario: Exporting dayone to json - Given we use the config "dayone.yaml" - When we run "jrnl --export json" - Then we should get no error - and the output should be parsable as json - and the json output should contain entries.0.uuid = "4BB1F46946AD439996C9B59DE7C4DDC1" - Scenario: Exporting using custom templates Given we use the config "basic.yaml" Given we load template "sample.template" diff --git a/features/regression.feature b/features/regression.feature index 727f7c27..0811af4e 100644 --- a/features/regression.feature +++ b/features/regression.feature @@ -8,12 +8,6 @@ Feature: Zapped bugs should stay dead. 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.yaml" - 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.yaml" @@ -59,22 +53,3 @@ Feature: Zapped bugs should stay dead. 2013-06-10 15:40 He said "[this] is the best time to be alive". """ - Scenario: Title with an embedded period on DayOne journal - Given we use the config "dayone.yaml" - When we run "jrnl 04-24-2014: "Ran 6.2 miles today in 1:02:03. I'm feeling sore because I forgot to stretch."" - Then we should see the message "Entry added" - When we run "jrnl -1" - Then the output should be - """ - 2014-04-24 09:00 Ran 6.2 miles today in 1:02:03. - | I'm feeling sore because I forgot to stretch. - """ - - Scenario: DayOne tag searching should work with tags containing a mixture of upper and lower case. - # https://github.com/maebert/jrnl/issues/354 - Given we use the config "dayone.yaml" - When we run "jrnl @plAy" - Then the output should contain - """ - 2013-05-17 11:39 This entry has tags! - """