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 (Test::Unit.setup_argv): call given block for

filtering files.

* test/runner.rb: search srcdir/test/arg, srcdir/arg.

* bin/testrb: show usage if no files given.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2008-10-19 15:59:35 +00:00
parent 295c75cb7c
commit 8fe3d0285f
4 changed files with 57 additions and 20 deletions

View file

@ -1,3 +1,9 @@
#!/usr/bin/env ruby
require 'test/unit'
Test::Unit.setup_argv
Test::Unit.setup_argv {|files|
if files.empty?
puts "Usage: testrb [options] tests..."
exit 1
end
files
}