test-unit/lib/test/unit/collector/load.rb in activeldap-1.2.0 vs test-unit/lib/test/unit/collector/load.rb in activeldap-1.2.1

- old
+ new

@@ -27,11 +27,11 @@ def collect(*froms) add_load_path(@base) do froms = ["."] if froms.empty? test_suites = froms.collect do |from| - test_suite = collect_recursive(from, find_test_cases) + test_suite = collect_recursive(resolve_path(from), find_test_cases) test_suite = nil if test_suite.tests.empty? test_suite end.compact if test_suites.size > 1 @@ -54,13 +54,12 @@ ignore.concat(test_cases) test_cases end private - def collect_recursive(name, already_gathered) + def collect_recursive(path, already_gathered) sub_test_suites = [] - path = resolve_path(name) if path.directory? directories, files = path.children.partition do |child| child.directory? end