Skip to content

Commit 0ba1b7e

Browse files
p-schlickmannrosa
authored andcommitted
passing original backtrace to ExpectedTestError
1 parent 896912c commit 0ba1b7e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/dummy/app/jobs/infinite_recursion_job.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ class InfiniteRecursionJob < ApplicationJob
33

44
def perform
55
start
6-
rescue SystemStackError
7-
raise ExpectedTestError, "stack level too deep"
6+
rescue SystemStackError => e
7+
raise ExpectedTestError, "stack level too deep", e.backtrace
88
end
99

1010
private

0 commit comments

Comments
 (0)