Class: Guard::JRubyMinitest::AppPathsReloader

Inherits:
Object
  • Object
show all
Extended by:
TestPaths
Defined in:
lib/guard/jruby-minitest/reloaders/app_paths_reloader.rb

Instance Attribute Summary

Attributes included from TestPaths

#test_folders

Class Method Summary collapse

Methods included from TestPaths

in_test_folders?

Class Method Details

.run(paths) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/guard/jruby-minitest/reloaders/app_paths_reloader.rb', line 6

def self.run(paths)

  paths.select{|p| !in_test_folders?(p)}.each do |p|
    if File.exists?(p)
      Containment.new.protect { load p }
    end
  end
end