blob: f4cd42f443c5b438a82f4a02d3b93775d556daae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/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
|