1
0
mirror of https://github.com/sstephenson/bats.git synced 2026-02-25 09:18:10 +01:00

Fix for test files without trailing newlines (closes #12)

This commit is contained in:
Sam Stephenson
2013-10-21 12:45:49 -05:00
parent 02df4f53a8
commit 8930e4e0d1
3 changed files with 10 additions and 1 deletions

View File

@@ -117,6 +117,12 @@ fixtures bats
[ $status -eq 0 ]
}
@test "test file without trailing newline" {
run bats "$FIXTURE_ROOT/without_trailing_newline.bats"
[ $status -eq 0 ]
[ "${lines[1]}" = "ok 1 truth" ]
}
@test "skipped tests" {
run bats "$FIXTURE_ROOT/skipped.bats"
[ $status -eq 0 ]

View File

@@ -0,0 +1,3 @@
@test "truth" {
true
}