FIX: FakeExceptions should have the original class name

This commit is contained in:
Daniel Waterworth
2019-06-27 11:43:12 +01:00
parent e58f67a0c0
commit 8a0be71b3c
2 changed files with 10 additions and 1 deletions

View File

@@ -21,6 +21,7 @@ module TurboTests
def exception_to_json(exception)
if exception
{
class_name: exception.class.name.to_s,
backtrace: exception.backtrace,
message: exception.message,
cause: exception_to_json(exception.cause)