Best: assert_exit Asserts that the test exits with a specific exit code. Arguments: $1 [number] -- The expected exit code. Example: assert_exit 1 exit 0