summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDave Henderson <dhenderson@gmail.com>2017-06-04 11:32:40 -0400
committerDave Henderson <dhenderson@gmail.com>2017-06-04 11:46:33 -0400
commit29a5bff02022cd9f99be2d3cf7c179a8e78ff6b7 (patch)
tree81e37b512e321518911ba92997a9c4bc78e547f2 /test
parentf55b1d6844279aedfc3745258d961854f39c161e (diff)
Add include function
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'test')
-rw-r--r--test/integration/datasources_file.bats7
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" ]]
+}