Sha256: 5c19eb51335365e9afb0de36c90e2eeb823a25c8decacb213c8e5d391485efa6
Contents?: true
Size: 551 Bytes
Versions: 4
Compression:
Stored size: 551 Bytes
Contents
begin require 'test/unit' rescue LoadError require 'runit/testcase' require 'runit/cui/testrunner' module RUNIT module Assert def assert_raises(error, message = nil) begin yield rescue error assert(true, message) rescue assert_fail("must fail with #{error} : #{string}") else assert_fail("*must* fail : #{string}") end end end end end if RUBY_VERSION > "1.7" class Array alias indices select end class Hash alias indexes select end end
Version data entries
4 entries across 4 versions & 3 rubygems
Version | Path |
---|---|
brianmario-bzip2-ruby-0.2.4 | test/runit_.rb |
bzip2-ruby-0.2.3 | test/runit_.rb |
bzip2-ruby-0.2.4 | test/runit_.rb |
bz2-0.2.2 | test/runit_.rb |