diff --git a/src/_adr_help_new b/src/_adr_help_new index ae41118..286bfb1 100755 --- a/src/_adr_help_new +++ b/src/_adr_help_new @@ -12,7 +12,7 @@ preferred; EDITOR is used if VISUAL is not set). After editing, the file name of the ADR is output to stdout, so the command can be used in scripts. -If the ADR directory contains a file `templates/template.md`, this is used as +If the ADR directory contains a file "templates/template.md", this is used as the template for the new ADR. Otherwise the following file is used: ${adr_template_dir}/template.md diff --git a/tests/help-new-template-path.expected b/tests/help-new-template-path.expected new file mode 100644 index 0000000..333075f --- /dev/null +++ b/tests/help-new-template-path.expected @@ -0,0 +1,2 @@ +ADR_PAGER=cat adr help new | grep 'file "templates/template.md"' +If the ADR directory contains a file "templates/template.md", this is used as diff --git a/tests/help-new-template-path.sh b/tests/help-new-template-path.sh new file mode 100644 index 0000000..de9f50e --- /dev/null +++ b/tests/help-new-template-path.sh @@ -0,0 +1 @@ +ADR_PAGER=cat adr help new | grep 'file "templates/template.md"'