Sha256: de791d7ccb30739c9faf0fb76a1141e413edbca08858b1455c7bfd241d4bfaed
Contents?: true
Size: 452 Bytes
Versions: 10
Compression:
Stored size: 452 Bytes
Contents
module Test module Unit class Error def initialize_with_exception_wrapping(test_name, exception) wrap = Exception.new "#{exception.class}: #{exception.message}" wrap.set_backtrace exception.backtrace @test_name = test_name @exception = wrap end alias_method :initialize_without_exception_wrapping, :initialize alias_method :initialize, :initialize_with_exception_wrapping end end end
Version data entries
10 entries across 10 versions & 1 rubygems