lib/tap/test/utils.rb in bahuvrihi-tap-0.10.8 vs lib/tap/test/utils.rb in bahuvrihi-tap-0.11.0

- old
+ new

@@ -58,11 +58,11 @@ # # reference_map('/root/input', '/root/ref', '**/*.txt') # # !> DereferenceError # def reference_map(source_dir, reference_dir, pattern='**/*.ref') - Dir.glob(File.join(source_dir, pattern)).collect do |source| + Dir.glob(File.join(source_dir, pattern)).sort.collect do |source| # use the path specified in the source file relative_path = File.read(source).gsub(/#.*$/, "").strip # use the relative filepath of the source file to the # source dir (minus the extname) if no path is specified @@ -226,6 +226,6 @@ # Raised when no reference can be found for a reference path. class DereferenceError < StandardError end end end -end \ No newline at end of file +end