module Rails::BacktraceFilterForTestUnit
def self.included(klass)
For installing the BacktraceCleaner in the test/unit
def self.included(klass) klass.send :alias_method_chain, :filter_backtrace, :cleaning end
def filter_backtrace_with_cleaning(backtrace, prefix=nil)
def filter_backtrace_with_cleaning(backtrace, prefix=nil) backtrace = filter_backtrace_without_cleaning(backtrace, prefix) backtrace = backtrace.first.split("\n") if backtrace.size == 1 Rails.backtrace_cleaner.clean(backtrace) end