Class | Protest::Utils::BacktraceFilter |
In: |
lib/protest/utils/backtrace_filter.rb
|
Parent: | Object |
Small utility object to filter an error‘s backtrace and remove any mention of Protest‘s own files.
ESCAPE_PATHS | = | [ # Path to the library's 'lib' dir. /^#{Regexp.escape(File.dirname(File.dirname(File.dirname(File.expand_path(__FILE__)))))}/, # Users certainly don't care about what test loader is being used %r[lib/rake/rake_test_loader.rb], %r[bin/testrb] |