diff options
| author | Dave Henderson <dhenderson@gmail.com> | 2017-06-04 11:32:40 -0400 |
|---|---|---|
| committer | Dave Henderson <dhenderson@gmail.com> | 2017-06-04 11:46:33 -0400 |
| commit | 29a5bff02022cd9f99be2d3cf7c179a8e78ff6b7 (patch) | |
| tree | 81e37b512e321518911ba92997a9c4bc78e547f2 /test | |
| parent | f55b1d6844279aedfc3745258d961854f39c161e (diff) | |
Add include function
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'test')
| -rw-r--r-- | test/integration/datasources_file.bats | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/integration/datasources_file.bats b/test/integration/datasources_file.bats index 621931c9..cfabcb65 100644 --- a/test/integration/datasources_file.bats +++ b/test/integration/datasources_file.bats @@ -40,3 +40,10 @@ function teardown () { [[ "${output}" == "foo\" bar" ]] } + +@test "'include' doesn't parse file" { + echo 'foo: bar' > $tmpdir/config.yml + gomplate -d config=$tmpdir/config.yml -i '{{include "config"}}' + [ "$status" -eq 0 ] + [[ "${output}" == "foo: bar" ]] +} |
