ruby/bin/testrb

15 строки
247 B
Ruby
Executable File

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