diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 00000000..b58b603f --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,5 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 00000000..5f245537 --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,41 @@ + + + + \ No newline at end of file diff --git a/.idea/jrnl.iml b/.idea/jrnl.iml new file mode 100644 index 00000000..cb435554 --- /dev/null +++ b/.idea/jrnl.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 00000000..06275eb2 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 00000000..07ec31a9 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 00000000..35eb1ddf --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/tests/bdd/features/template.feature b/tests/bdd/features/template.feature index 02e2a3bc..88c0edab 100644 --- a/tests/bdd/features/template.feature +++ b/tests/bdd/features/template.feature @@ -17,3 +17,18 @@ Feature: Using templates | basic_folder.yaml | | basic_dayone.yaml | + Scenario Outline: Templated entry should not save if received text is identical to template + Given we use the config "" + And we use the password "test" if prompted + When we run "jrnl --config-override template features/templates/basic.template" + And we run "jrnl -1" + Then the output should contain "This text is in the basic template" + + Examples: configs + | config_file | + | basic_onefile.yaml | + | basic_encrypted.yaml | + | basic_folder.yaml | + | basic_dayone.yaml | + +