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

Version Path
deep_test-1.0.0 lib/deep_test/extensions/error.rb
deep_test-1.0.3 lib/deep_test/extensions/error.rb
deep_test-1.0.4 lib/deep_test/extensions/error.rb
deep_test-1.1.3 lib/deep_test/test/extensions/error.rb
deep_test-1.1.4 lib/deep_test/test/extensions/error.rb
deep_test-1.0.1 lib/deep_test/extensions/error.rb
deep_test-1.0.2 lib/deep_test/extensions/error.rb
deep_test-1.1.0 lib/deep_test/extensions/error.rb
deep_test-1.1.1 lib/deep_test/extensions/error.rb
deep_test-1.1.2 lib/deep_test/extensions/error.rb