diff --git a/tests/templates.bats b/tests/templates.bats index b5c3dfc49e76fdbc31fc80fb29ceb207f4ecb96e..a9647d25b742e9dcb3499809b868bfc8bab96057 100644 --- a/tests/templates.bats +++ b/tests/templates.bats @@ -12,3 +12,10 @@ export name='John' run cat "$BATS_TMPDIR/output" [ "$output" = "John" ] } + +@test "Render file in-place" { + cp "$BATS_TEST_DIRNAME/input" "$BATS_TMPDIR/inplace" + template --output "$BATS_TMPDIR/inplace" "$BATS_TMPDIR/inplace" + run cat "$BATS_TMPDIR/inplace" + [ "$output" = "John" ] +}