1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/test/unit.rb: MiniTest::Unit is different class from

Test::Unit, and install runner before loading test/minitest.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2010-07-17 01:08:04 +00:00
parent d98d3fe12a
commit 43f3e3779c
4 changed files with 46 additions and 9 deletions

View file

@ -1,9 +1,9 @@
#!/usr/bin/env ruby
require 'test/unit'
Test::Unit.setup_argv {|files|
exit Test::Unit.start {|files|
if files.empty?
puts "Usage: testrb [options] tests..."
exit 1
exit false
end
if files.size == 1
$0 = File.basename(files[0])