From 98d69f426fc1243de3817e602fe2da959962375e Mon Sep 17 00:00:00 2001 From: kou Date: Sat, 3 Nov 2012 08:56:22 +0000 Subject: * 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 --- bin/testrb | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'bin') diff --git a/bin/testrb b/bin/testrb index e9046eb147..23a00b439f 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) -- cgit v1.2.3