errors/abort_uncaught.rb
tests/_examples/errors/abort_uncaught.rb in the metorex repository.
class Capture
def write(text)
puts "captured: #{text}"
end
end
$stderr = Capture.new
abort "redirected message"
puts "never reached"
tests/_examples/errors/abort_uncaught.rb in the metorex repository.
class Capture
def write(text)
puts "captured: #{text}"
end
end
$stderr = Capture.new
abort "redirected message"
puts "never reached"