test/unit/test.rb in ruote-0.9.20 vs test/unit/test.rb in ruote-2.1.1

- old
+ new

@@ -3,17 +3,8 @@ # testing Ruote # # since Mon Oct 9 22:19:44 JST 2006 # -dirpath = File.dirname(__FILE__) - -uts = Dir.new(dirpath).entries.select { |e| e.match(/^ut\_.*\.rb$/) }.sort -huts = Dir.new(dirpath).entries.select { |e| e.match(/^hut\_.*\.rb$/) }.sort - -tests = uts + huts - -tests.each { |e| load "#{dirpath}/#{e}" } - -#tests.each { |e| puts `ruby #{dirpath}/#{e}` } - # making sure that each test is runnable standalone +Dir.glob(File.join(File.dirname(__FILE__), 'ut_*.rb')).sort.each { |t| load(t) } +Dir.glob(File.join(File.dirname(__FILE__), 'hut_*.rb')).sort.each { |t| load(t) }