From a5055a48185ac458299adc6968f9b6b5d314cbf2 Mon Sep 17 00:00:00 2001 From: Lars Kanis <kanis@comcard.de> Date: Thu, 2 Feb 2012 17:47:27 +0100 Subject: [PATCH] simplify TS_All, so that it works on Ruby 1.9.3 --- test/TS_All.rb | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/test/TS_All.rb b/test/TS_All.rb index 9778dcd..92db76e 100755 --- a/test/TS_All.rb +++ b/test/TS_All.rb @@ -1,25 +1,9 @@ require 'fox16' 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 - require 'test/unit/ui/console/testrunner' + $: << File.dirname(__FILE__) Dir.glob("TC_*.rb").each do |testcase| require "#{testcase}" end - Test::Unit::UI::Console::TestRunner.run(TS_All) end -- GitLab