summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-03 08:56:22 (GMT)
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-03 08:56:22 (GMT)
commit98d69f426fc1243de3817e602fe2da959962375e (patch)
treee29619c3c40a3b2d359fbeaf3cc0d09f0aa8c92d /bin
parent0ae90522a684de90e38b45fa8e5d027b04049861 (diff)
* bin/testrb: Use only Test::Unit::AutoRunner in test-unit gem
compatible API to be available by both test/unit bundled in Ruby and test-unit gem. * lib/test/unit.rb (Test::Unit::AutoRunner): Move codes from testrb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37455 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bin')
-rwxr-xr-xbin/testrb9
1 files changed, 1 insertions, 8 deletions
diff --git a/bin/testrb b/bin/testrb
index e9046eb..23a00b4 100755
--- a/bin/testrb
+++ b/bin/testrb
@@ -1,10 +1,3 @@
#!/usr/bin/env ruby
require 'test/unit'
-tests = Test::Unit::AutoRunner.new(true)
-tests.options.banner.sub!(/\[options\]/, '\& tests...')
-unless tests.process_args(ARGV)
- abort tests.options.banner
-end
-files = tests.to_run
-$0 = files.size == 1 ? File.basename(files[0]) : files.to_s
-exit tests.run
+exit Test::Unit::AutoRunner.run(true)