We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 896321b commit 4a16e28Copy full SHA for 4a16e28
spec/spec_helper.rb
@@ -16,25 +16,25 @@ def build_exception
16
17
def build_exception_with_cause
18
begin
19
- 1 / 0
20
- rescue ZeroDivisionError
21
+ raise "exception a"
+ rescue
+ raise "exception b"
22
end
23
-rescue ZeroDivisionError => exception
+rescue RuntimeError => exception
24
return exception
25
26
27
def build_exception_with_two_causes
28
29
30
31
32
33
34
35
+ raise "exception c"
36
37
38
39
40
0 commit comments