test/assert_raise.rb in cutest-1.2.1 vs test/assert_raise.rb in cutest-1.2.2

- old
+ new

@@ -9,5 +9,14 @@ assert_raise(RuntimeError) do raise ArgumentError end end end + +test "returns the exception" do + exception = assert_raise(RuntimeError) do + raise RuntimeError, "error" + end + + assert_equal "error", exception.message +end +