From e58f67a0c0b4e430cec791c5471e0c0e57dba11a Mon Sep 17 00:00:00 2001 From: Daniel Waterworth Date: Thu, 27 Jun 2019 11:37:23 +0100 Subject: [PATCH] FIX: an exception cause is itself an exception --- lib/turbo_tests.rb | 2 +- lib/turbo_tests/json_rows_formatter.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/turbo_tests.rb b/lib/turbo_tests.rb index b3715ae5332..8e3b5cc9e7e 100644 --- a/lib/turbo_tests.rb +++ b/lib/turbo_tests.rb @@ -22,7 +22,7 @@ module TurboTests new( obj[:backtrace], obj[:message], - obj[:cause] + FakeException.from_obj(obj[:cause]) ) end end diff --git a/lib/turbo_tests/json_rows_formatter.rb b/lib/turbo_tests/json_rows_formatter.rb index 2ec66d0f8db..6a9ca69f924 100644 --- a/lib/turbo_tests/json_rows_formatter.rb +++ b/lib/turbo_tests/json_rows_formatter.rb @@ -23,7 +23,7 @@ module TurboTests { backtrace: exception.backtrace, message: exception.message, - cause: exception.cause + cause: exception_to_json(exception.cause) } end end