Sha256: 544a5f976cada333213935b375181390e7f917cc1816bdef78e43150fd3f8b51
Contents?: true
Size: 556 Bytes
Versions: 1
Compression:
Stored size: 556 Bytes
Contents
module TestRocket extend Module.new { attr_accessor :out } def _test(a, b); send((call rescue()) ? a : b) end def +@; _show _test :_pass, :_fail end def -@; _show _test :_fail, :_pass end def ~; _show _pend; end def !; _show _desc; end def _show(r); (TestRocket.out || $>) << r + "\n"; r end def _pass; " OK" end def _fail; " FAIL @ #{source_location * ':'}" end def _pend; "PENDING '#{call}' @ #{source_location * ':'}" end def _desc; " FIRE '#{call}'!" end end Proc.send :include, TestRocket
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
testrocket-0.0.2 | lib/testrocket.rb |