Sha256: c66d78ac46d27e6a4faa7b75a88f1e37fe4f53b9407855f85f7fab8ede43fccf
Contents?: true
Size: 379 Bytes
Versions: 37
Compression:
Stored size: 379 Bytes
Contents
module Mocha class BacktraceFilter LIB_DIRECTORY = File.expand_path(File.join(File.dirname(__FILE__), "..")) + File::SEPARATOR def initialize(lib_directory = LIB_DIRECTORY) @path_pattern = Regexp.new(lib_directory) end def filtered(backtrace) backtrace.reject { |location| @path_pattern.match(File.expand_path(location)) } end end end
Version data entries
37 entries across 32 versions & 4 rubygems