diff options
author | guy Decoux <ts@moulon.inra.fr> | 2009-02-28 20:20:42 +0100 |
---|---|---|
committer | guy Decoux <ts@moulon.inra.fr> | 2009-02-28 20:20:42 +0100 |
commit | 5bcbd1d5d3e74f07220cbda4014d408f97447e63 (patch) | |
tree | 7e36b879937b2817ca0800fc3959693d8cd57b48 /tests/runit_.rb | |
parent | 697ed85e893ab9039bf52a9bcd0ecadf1af9b654 (diff) | |
download | mmap-ruby-5bcbd1d5d3e74f07220cbda4014d408f97447e63.zip mmap-ruby-5bcbd1d5d3e74f07220cbda4014d408f97447e63.tar.gz |
mmap-0.2.5
Diffstat (limited to 'tests/runit_.rb')
-rw-r--r-- | tests/runit_.rb | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/tests/runit_.rb b/tests/runit_.rb deleted file mode 100644 index 0479592..0000000 --- a/tests/runit_.rb +++ /dev/null @@ -1,44 +0,0 @@ -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 - def flunk(message = "") - assert_fail(message) - end - end - end -end - - -if RUBY_VERSION > "1.7" - class Array - alias indices select - end - class Hash - alias indexes select - end - module BDB - class Common - alias indexes select - end - - class Recnum - alias indices select - end - end -end |