File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
activesupport/lib/active_support/testing Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change 4
4
module ActiveSupport
5
5
module Testing
6
6
module SetupAndTeardown
7
+
8
+ PASSTHROUGH_EXCEPTIONS = [
9
+ NoMemoryError ,
10
+ SignalException ,
11
+ Interrupt ,
12
+ SystemExit
13
+ ]
14
+
7
15
extend ActiveSupport ::Concern
8
16
9
17
included do
@@ -28,14 +36,14 @@ def run(runner)
28
36
run_callbacks :setup do
29
37
result = super
30
38
end
31
- rescue *:: MiniTest :: Unit :: TestCase :: PASSTHROUGH_EXCEPTIONS
39
+ rescue *PASSTHROUGH_EXCEPTIONS
32
40
raise
33
41
rescue Exception => e
34
42
result = runner . puke ( self . class , method_name , e )
35
43
ensure
36
44
begin
37
45
run_callbacks :teardown
38
- rescue *:: MiniTest :: Unit :: TestCase :: PASSTHROUGH_EXCEPTIONS
46
+ rescue *PASSTHROUGH_EXCEPTIONS
39
47
raise
40
48
rescue Exception => e
41
49
result = runner . puke ( self . class , method_name , e )
You can’t perform that action at this time.
0 commit comments