Module: Guard::JRubyMinitest::TestPaths

Extended by:
TestPaths
Included in:
AppPathsReloader, TestPaths, TestPathsReloader
Defined in:
lib/guard/jruby-minitest/reloaders/test_paths.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#test_foldersObject



8
9
10
# File 'lib/guard/jruby-minitest/reloaders/test_paths.rb', line 8

def test_folders
  @test_folders ||= ['test', 'spec']
end

Instance Method Details

#in_test_folders?(path) ⇒ Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/guard/jruby-minitest/reloaders/test_paths.rb', line 12

def in_test_folders?(path)
  test_folders.any? {|folder| path.start_with?("#{folder}/")}
end