Sha256: 45304b5db7571bc38da504512d3b609bf1d8863055044dbd285e1f84e95d6ee7
Contents?: true
Size: 535 Bytes
Versions: 3
Compression:
Stored size: 535 Bytes
Contents
#-- # Copyright 2009 Suraj N. Kurapati # See the LICENSE file for details. #++ # 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. 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dfect-1.0.0 | lib/dfect/auto.rb |
dfect-0.0.0 | lib/dfect/auto.rb |
dfect-0.1.0 | lib/dfect/auto.rb |