Sha256: cde57537d9f4c563dff4ac3229d7e1f0f7010db6c4c7935d12b649e607432428
Contents?: true
Size: 543 Bytes
Versions: 8
Compression:
Stored size: 543 Bytes
Contents
require 'rspec' require 'abstractivator/exception_ext' require 'stringio' describe Exception do describe '#print_full_trace' do it 'prints the full trace including causes' do io = StringIO.new begin begin raise ArgumentError, 'x must not be nil' rescue => e raise 'there was an error' end rescue => e e.print_full_trace(io) end expect(io.string).to match /RuntimeError: there was an error.*Caused by.*ArgumentError: x must not be nil/m end end end
Version data entries
8 entries across 8 versions & 1 rubygems