Sha256: 8f03353e3a908eb0f1ab3c3e38acec0051f1268c5e7e9abe0ad0b21a9994da5c
Contents?: true
Size: 1.01 KB
Versions: 1
Compression:
Stored size: 1.01 KB
Contents
require "test_helper" class ExitCodesTest < MTest def test_failing_test_returns_1 m "examples/subdir_with_failures/a_test" refute $?.success?, "expected exit code to be 1 but it was #{$?.exitstatus}" end def test_test_with_error_returns_1 m "../lib/error_tests/error_test" refute $?.success?, "expected exit code to be 1 but it was #{$?.exitstatus}" end def test_dir_with_failure_returns_1 m "examples/subdir_with_failures" refute $?.success?, "expected exit code to be 1 but it was #{$?.exitstatus}" end def test_dir_with_error_returns_1 m "../lib/error_tests" refute $?.success?, "expected exit code to be 1 but it was #{$?.exitstatus}" end def test_without_errors_or_failures_returns_0 m "examples/subdir/a_test" assert $?.success?, "expected exit code to be 0 but it was #{$?.exitstatus}" end def test_dir_without_errors_or_failures_returns_0 m "examples/subdir" assert $?.success?, "expected exit code to be 0 but it was #{$?.exitstatus}" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
m-1.6.2 | test/exit_codes_test.rb |