From 4a187385d26db5b4c853f69b861a841cf3fc7106 Mon Sep 17 00:00:00 2001 From: Sam Stephenson Date: Mon, 4 Nov 2013 13:34:37 -0600 Subject: [PATCH] Simplify test names --- test/bats.bats | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/bats.bats b/test/bats.bats index d9f6d91..37d55c2 100755 --- a/test/bats.bats +++ b/test/bats.bats @@ -86,21 +86,21 @@ fixtures bats [ ${#lines[@]} -eq 3 ] } -@test "setup failure should reuslt in test failure" { +@test "setup failure" { run bats "$FIXTURE_ROOT/failing_setup.bats" [ $status -eq 1 ] [ "${lines[1]}" = "not ok 1 truth" ] [ "${lines[2]}" = "# (from function \`setup' in test file $FIXTURE_ROOT/failing_setup.bats, line 2)" ] } -@test "passing test with teardown failure should result in test failure" { +@test "passing test with teardown failure" { PASS=1 run bats "$FIXTURE_ROOT/failing_teardown.bats" [ $status -eq 1 ] [ "${lines[1]}" = "not ok 1 truth" ] [ "${lines[2]}" = "# (from function \`teardown' in test file $FIXTURE_ROOT/failing_teardown.bats, line 2)" ] } -@test "failing test with teardown failure should result in test failure" { +@test "failing test with teardown failure" { PASS=0 run bats "$FIXTURE_ROOT/failing_teardown.bats" [ $status -eq 1 ] [ "${lines[1]}" = "not ok 1 truth" ]