vendor/bundle/ruby/1.8/gems/rspec-core-2.9.0/lib/rspec/core/configuration.rb
# Used by formatters to ask whether a backtrace line should be displayed
# or not, based on the line matching any `backtrace_clean_patterns`.
Used by formatters to ask whether a backtrace line should be displayed
or not, based on the line matching any `backtrace_clean_patterns`.
Used by formatters to ask whether a backtrace line should be displayed or not based on the line matching any ` backtrace_clean_patterns ` .
def cleaned_from_backtrace?(line)
        backtrace_clean_patterns.any? { |regex| line =~ regex }
      end
def cleaned_from_backtrace? ( line ) backtrace_clean_patterns . any? { | regex | line =~ regex } end
Used by formatters to ask whether a backtrace line should be displayed
or not, based on the line matching any `backtrace_clean_patterns`.
Used by formatters to ask whether a backtrace line should be displayed or not based on the line matching any ` backtrace_clean_patterns ` .
# TODO (David 2011-12-25) why are we asking the configuration to do # stuff? Either use the patterns directly or enapsulate the filtering # in a BacktraceCleaner object.
line