Class: CoreExt::Testing::CompositeFilter::Filter
- Defined in:
- lib/core_ext/testing/composite_filter.rb
Overview
:nodoc:
Instance Method Summary collapse
- #===(method) ⇒ Object
-
#initialize(runnable, file, line) ⇒ Filter
constructor
A new instance of Filter.
Constructor Details
Instance Method Details
#===(method) ⇒ Object
33 34 35 36 37 38 39 40 41 42 |
# File 'lib/core_ext/testing/composite_filter.rb', line 33 def ===(method) return unless @runnable.method_defined?(method) if @line test_file, test_range = definition_for(@runnable.instance_method(method)) test_file == @file && test_range.include?(@line) else @runnable.instance_method(method).source_location.first == @file end end |