Sha256: 29b988f2aa999fabecf4b285ad826c9a7a201b21f54e58a03d2be34b69339088
Contents?: true
Size: 600 Bytes
Versions: 4
Compression:
Stored size: 600 Bytes
Contents
module Minitest class << self alias_method :original_run_one_method, :run_one_method def run_one_method(klass, method_name) EnhancedErrors.start_minitest_binding_capture result = original_run_one_method(klass, method_name) ensure begin binding_infos = EnhancedErrors.stop_minitest_binding_capture EnhancedErrors.override_exception_message(result.failures.last, binding_infos) if result.failures.any? Enhanced::ExceptionContext.clear_all rescue => e puts "Ignored error during error enhancement: #{e}" end end end end
Version data entries
4 entries across 4 versions & 1 rubygems