Class: Rails::TestUnit::Filter
- Inherits:
 - 
      Object
      
        
- Object
 - Rails::TestUnit::Filter
 
 
- Defined in:
 - lib/rails/test_unit/runner.rb
 
Overview
:nodoc:
Instance Method Summary collapse
- #===(method) ⇒ Object
 - 
  
    
      #initialize(runnable, file, line)  ⇒ Filter 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of Filter.
 
Constructor Details
#initialize(runnable, file, line) ⇒ Filter
Returns a new instance of Filter.
      142 143 144 145  | 
    
      # File 'lib/rails/test_unit/runner.rb', line 142 def initialize(runnable, file, line) @runnable, @file = runnable, File.(file) @line = line.to_i if line end  | 
  
Instance Method Details
#===(method) ⇒ Object
      147 148 149 150 151 152 153 154 155 156  | 
    
      # File 'lib/rails/test_unit/runner.rb', line 147 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  |