Class: Minitest::Distributed::Filters::ExcludeFileFilter

Inherits:
FileFilterBase
  • Object
show all
Extended by:
T::Sig
Includes:
FilterInterface
Defined in:
lib/minitest/distributed/filters/exclude_file_filter.rb

Instance Attribute Summary

Attributes inherited from FileFilterBase

#file

Instance Method Summary collapse

Methods inherited from FileFilterBase

#initialize, #tests

Constructor Details

This class inherits a constructor from Minitest::Distributed::Filters::FileFilterBase

Instance Method Details

#call(runnable) ⇒ Object



12
13
14
# File 'lib/minitest/distributed/filters/exclude_file_filter.rb', line 12

def call(runnable)
  tests.include?(DefinedRunnable.identifier(runnable)) ? [] : [runnable]
end