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