Sha256: 01d09908f9b822a0179caf640fada490591cadbb1cba450e619d895154a48bf7

Contents?: true

Size: 591 Bytes

Versions: 171

Compression:

Stored size: 591 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

171 entries across 125 versions & 12 rubygems

Version Path
craigmarksmith-rake-0.8.3.100 lib/rake/ruby182_test_unit_fix.rb
craigmarksmith-rake-0.8.4.101 lib/rake/ruby182_test_unit_fix.rb
craigmarksmith-rake-0.8.4.102 lib/rake/ruby182_test_unit_fix.rb
craigmarksmith-rake-0.8.4.103 lib/rake/ruby182_test_unit_fix.rb
elliottcable-echoe-3.1.1 vendor/rake/lib/rake/ruby182_test_unit_fix.rb
elliottcable-echoe-3.1.2 vendor/rake/lib/rake/ruby182_test_unit_fix.rb
jimweirich-rake-0.8.1.10 lib/rake/ruby182_test_unit_fix.rb
jimweirich-rake-0.8.1.11 lib/rake/ruby182_test_unit_fix.rb
jimweirich-rake-0.8.1.5 lib/rake/ruby182_test_unit_fix.rb
jimweirich-rake-0.8.1.6 lib/rake/ruby182_test_unit_fix.rb
jimweirich-rake-0.8.1.7 lib/rake/ruby182_test_unit_fix.rb
jimweirich-rake-0.8.1.8 lib/rake/ruby182_test_unit_fix.rb
jimweirich-rake-0.8.1.9 lib/rake/ruby182_test_unit_fix.rb
jimweirich-rake-0.8.2.99 lib/rake/ruby182_test_unit_fix.rb
jimweirich-rake-0.8.2 lib/rake/ruby182_test_unit_fix.rb
jimweirich-rake-0.8.3.1 lib/rake/ruby182_test_unit_fix.rb
jimweirich-rake-0.8.3.100 lib/rake/ruby182_test_unit_fix.rb
jimweirich-rake-0.8.3.99 lib/rake/ruby182_test_unit_fix.rb
jimweirich-rake-0.8.3 lib/rake/ruby182_test_unit_fix.rb
jimweirich-rake-0.8.4.99 lib/rake/ruby182_test_unit_fix.rb