test/unit/test_tests.rb in assert-2.19.6 vs test/unit/test_tests.rb in assert-2.19.7

- old
+ new

@@ -180,13 +180,14 @@ include Assert::Test::TestHelpers desc "when in halt-on-fail mode" should "capture fail results" do - test = Factory.test("halt-on-fail test", context_info1) do - raise Assert::Result::TestFailure - end + test = + Factory.test("halt-on-fail test", context_info1) do + raise Assert::Result::TestFailure + end test.run(&test_run_callback) assert_failed(test) end @@ -262,13 +263,14 @@ class ErrorHandlingTests < UnitTests include Assert::Test::TestHelpers should "capture error results" do - test = Factory.test("error test", context_info1) do - raise StandardError, "WHAT" - end + test = + Factory.test("error test", context_info1) do + raise StandardError, "WHAT" + end test.run(&test_run_callback) assert_errored(test) end @@ -302,12 +304,13 @@ end end class SignalExceptionHandlingTests < UnitTests should "raise any signal exceptions and not capture as an error" do - test = Factory.test("signal test", context_info1) do - raise SignalException, "USR1" - end + test = + Factory.test("signal test", context_info1) do + raise SignalException, "USR1" + end assert_that{ test.run }.raises(SignalException) end should "raises signal exceptions in the context setup" do