Sha256: 9293a6062e5d9cac3d634bf860453a3a9a75d6fd1869a11037a872befdab9873
Contents?: true
Size: 377 Bytes
Versions: 61
Compression:
Stored size: 377 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
61 entries across 50 versions & 5 rubygems