Parent

Files

Guard::Minitest::Inspector

Attributes

test_file_patterns[R]
test_folders[R]

Public Class Methods

new(test_folders, test_file_patterns) click to toggle source
# File lib/guard/minitest/inspector.rb, line 7
def initialize(test_folders, test_file_patterns)
  @test_folders = test_folders.uniq.compact
  @test_file_patterns = test_file_patterns.uniq.compact
end

Public Instance Methods

all_test_files() click to toggle source
# File lib/guard/minitest/inspector.rb, line 31
def all_test_files
  @all_test_files ||= _test_files_for_paths
end
clean(paths) click to toggle source
# File lib/guard/minitest/inspector.rb, line 16
def clean(paths)
  paths.reduce([]) do |memo, path|
    if File.directory?(path)
      memo += _test_files_for_paths(path)
    else
      memo << path if _test_file?(path)
    end
    memo
  end.uniq
end
clean_all() click to toggle source
# File lib/guard/minitest/inspector.rb, line 12
def clean_all
  clean(test_folders)
end
clear_memoized_test_files() click to toggle source
# File lib/guard/minitest/inspector.rb, line 27
def clear_memoized_test_files
  @all_test_files = nil
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.