Sha256: ed49e6626b2bbc755906923a5fe6dd6cbd5bae16c44b429803856c59288087bb
Contents?: true
Size: 563 Bytes
Versions: 7
Compression:
Stored size: 563 Bytes
Contents
module Test module Unit module Collector class Dir undef collect_file def collect_file(name, suites, already_gathered) # loadpath = $:.dup dir = File.dirname(File.expand_path(name)) $:.unshift(dir) unless $:.first == dir if(@req) @req.require(name) else require(name) end find_test_cases(already_gathered).each{|t| add_suite(suites, t.suite)} ensure # $:.replace(loadpath) $:.delete_at $:.rindex(dir) end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems