Skip to content
Snippets Groups Projects
Commit f3fa0f56 authored by nimrod's avatar nimrod
Browse files

Add test for changing a file in-place.

parent 27cbbe0a
Branches
No related tags found
No related merge requests found
...@@ -12,3 +12,10 @@ export name='John' ...@@ -12,3 +12,10 @@ export name='John'
run cat "$BATS_TMPDIR/output" run cat "$BATS_TMPDIR/output"
[ "$output" = "John" ] [ "$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" ]
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment