ruby/bin/testrb

16 строки
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