Module: Guard::Test::Inspector

Defined in:
lib/guard/test/inspector.rb

Class Method Summary collapse

Class Method Details

.clean(paths) ⇒ Object



16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'lib/guard/test/inspector.rb', line 16

def clean(paths)
  paths.uniq!
  paths.compact!

  paths.dup.each do |path|
    if test_folder?(path)
      paths.delete(path)
      paths += check_test_files(path)
    else
      paths.delete(path) unless test_file?(path)
    end
  end

  paths.uniq!
  paths.compact!
  clear_test_files_list
  paths.sort - ['test/test_helper.rb']
end

.test_pathsObject



8
9
10
# File 'lib/guard/test/inspector.rb', line 8

def test_paths
  @test_paths || []
end

.test_paths=(path_array) ⇒ Object



12
13
14
# File 'lib/guard/test/inspector.rb', line 12

def test_paths=(path_array)
  @test_paths = Array(path_array)
end