Skip to content
Snippets Groups Projects
Commit a5055a48 authored by Lars Kanis's avatar Lars Kanis
Browse files

simplify TS_All, so that it works on Ruby 1.9.3

parent 2f25f8da
No related branches found
No related tags found
No related merge requests found
require 'fox16' require 'fox16'
require 'test/unit' require 'test/unit'
class TS_All
def TS_All.suite
suite = Test::Unit::TestSuite.new
Object.constants.sort.each do |k|
next if /^TC_/ !~ k
constant = Object.const_get(k)
if constant.kind_of?(Class)
# puts "adding tests for #{constant.to_s}"
suite << constant.suite
end
end
suite
end
end
if __FILE__ == $0 if __FILE__ == $0
require 'test/unit/ui/console/testrunner' $: << File.dirname(__FILE__)
Dir.glob("TC_*.rb").each do |testcase| Dir.glob("TC_*.rb").each do |testcase|
require "#{testcase}" require "#{testcase}"
end end
Test::Unit::UI::Console::TestRunner.run(TS_All)
end end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment