Module: Rails::LineFiltering

Defined in:
railties/lib/rails/test_unit/line_filtering.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#run(reporter, options = {}) ⇒ Object


5
6
7
8
9
10
11
12
# File 'railties/lib/rails/test_unit/line_filtering.rb', line 5

def run(reporter, options = {})
  if options[:patterns] && options[:patterns].any? { |p| p =~ /:\d+/ }
    options[:filter] = \
      CompositeFilter.new(self, options[:filter], options[:patterns])
  end

  super
end