Sha256: 5a25c87d9f4ed4f20784b01d174c449a7d1e418c82ffc9ea4ad699fad02a0bb4
Contents?: true
Size: 528 Bytes
Versions: 1
Compression:
Stored size: 528 Bytes
Contents
# Provides painless, automatic configuration of Dfect. # # Simply require() this file and Dfect will be available for use anywhere # in your program and will execute all tests before your program exits. #-- # Copyright protects this work. # See LICENSE file for details. #++ require 'dfect' class Object include Dfect end at_exit do Dfect.run # reflect number of failures in exit status stats = Dfect.report[:statistics] fails = stats[:failed_assertions] + stats[:uncaught_exceptions] exit [fails, 255].min end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dfect-1.1.0 | lib/dfect/auto.rb |