Class: Protest::Rails::BacktraceFilter

Inherits:
Utils::BacktraceFilter
  • Object
show all
Includes:
Rails::BacktraceFilterForTestUnit
Defined in:
lib/protest/rails.rb

Overview

Exclude rails’ files from the errors

Instance Method Summary collapse

Instance Method Details

#filter_backtrace(backtrace, prefix = nil) ⇒ Object



17
18
19
20
21
# File 'lib/protest/rails.rb', line 17

def filter_backtrace(backtrace, prefix=nil)
  super(backtrace, prefix).reject do |line|
    line.starts_with?("/")
  end
end