1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/bin/testrb
nobu 327da86aaf * lib/test/unit.rb (MiniTest::Unit#process_args): refactored.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-17 10:01:49 +00:00

15 lines
281 B
Ruby
Executable file

#!/usr/bin/env ruby
require 'test/unit'
tests = Test::Unit.new {|files|
if files.empty?
puts "Usage: testrb [options] tests..."
exit false
end
if files.size == 1
$0 = File.basename(files[0])
else
$0 = files.to_s
end
files
}
exit tests.run(ARGV) || true