diff --git a/test/113_accept_jinja_alt.bats b/test/113_accept_jinja_alt.bats index 7d889df..0ca0d5a 100644 --- a/test/113_accept_jinja_alt.bats +++ b/test/113_accept_jinja_alt.bats @@ -83,6 +83,30 @@ function test_alt() { fi } +@test "Command 'alt' (envtpl missing)" { + echo " + When the command 'alt' is provided + and file matches ##yadm_tmpl + Report jinja template as unprocessed + Exit with 0 + " + + # shellcheck source=/dev/null + YADM_TEST=1 source "$T_YADM" + process_global_args -Y "$T_DIR_YADM" + test_cygwin + configure_paths + + status=0 + output=$( ENVTPL_PROGRAM='envtpl_missing' main alt ) || { + status=$? + true + } + + [ $status -eq 0 ] + [[ "$output" =~ envtpl.not.available ]] +} + @test "Command 'alt' (select jinja)" { echo " When the command 'alt' is provided