A platform for community discussion. Free, open, simple.
DEV: Repair RSpec full_cause_backtrace under bin/turbo_rspec (#26087)
David Taylor4b813427e755
diff --git a/lib/turbo_tests.rb b/lib/turbo_tests.rbindex fbec285a535..0686ac800fd 100644--- a/lib/turbo_tests.rb+++ b/lib/turbo_tests.rb@@ -17,9 +17,21 @@ require "./lib/turbo_tests/runner"require "./lib/turbo_tests/json_rows_formatter"require "./lib/turbo_tests/documentation_formatter"+RSpec.configure do |config|+ # this is an unusual config option because it is used by the formatter, not just the runner+ config.full_cause_backtrace = true+end+module TurboTests- FakeException = Struct.new(:backtrace, :message, :cause)- class FakeException+ class FakeException < Exception+ attr_reader :backtrace, :message, :cause++ def initialize(backtrace, message, cause)+ @backtrace = backtrace+ @message = message+ @cause = cause+ end+def self.from_obj(obj)if objobj = obj.symbolize_keys