lib/petitest/autorun.rb in petitest-0.2.0 vs lib/petitest/autorun.rb in petitest-0.2.1

- old
+ new

@@ -2,10 +2,9 @@ at_exit do if $! && !($!.is_a?(::SystemExit) && $!.success?) next end - test_cases = Petitest::TestGroup.test_cases - result = Petitest::TestCasesRunner.new(test_cases).run + result = Petitest::TestCasesRunner.new(Petitest::TestGroup.children).run exit_code = result ? 0 : 1 exit(exit_code) end