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

Version Path
dradis-mediawiki-4.14.0 test/vendor/mocha-0.9.5/lib/mocha/backtrace_filter.rb
dradis-mediawiki-4.13.0 test/vendor/mocha-0.9.5/lib/mocha/backtrace_filter.rb
dradis-mediawiki-4.11.0 test/vendor/mocha-0.9.5/lib/mocha/backtrace_filter.rb
dradis-mediawiki-4.10.0 test/vendor/mocha-0.9.5/lib/mocha/backtrace_filter.rb
dradis-mediawiki-4.9.0 test/vendor/mocha-0.9.5/lib/mocha/backtrace_filter.rb
dradis-mediawiki-4.8.0 test/vendor/mocha-0.9.5/lib/mocha/backtrace_filter.rb
dradis-mediawiki-4.7.0 test/vendor/mocha-0.9.5/lib/mocha/backtrace_filter.rb
dradis-mediawiki-4.6.0 test/vendor/mocha-0.9.5/lib/mocha/backtrace_filter.rb
dradis-mediawiki-4.5.0 test/vendor/mocha-0.9.5/lib/mocha/backtrace_filter.rb
dradis-mediawiki-4.4.0 test/vendor/mocha-0.9.5/lib/mocha/backtrace_filter.rb
dradis-mediawiki-4.3.0 test/vendor/mocha-0.9.5/lib/mocha/backtrace_filter.rb
dradis-mediawiki-4.2.0 test/vendor/mocha-0.9.5/lib/mocha/backtrace_filter.rb
dradis-mediawiki-4.1.0 test/vendor/mocha-0.9.5/lib/mocha/backtrace_filter.rb
dradis-mediawiki-4.0.0 test/vendor/mocha-0.9.5/lib/mocha/backtrace_filter.rb
dradis-mediawiki-3.22.0 test/vendor/mocha-0.9.5/lib/mocha/backtrace_filter.rb
dradis-mediawiki-3.21.0 test/vendor/mocha-0.9.5/lib/mocha/backtrace_filter.rb
dradis-mediawiki-3.20.0 test/vendor/mocha-0.9.5/lib/mocha/backtrace_filter.rb
dradis-mediawiki-3.19.0 test/vendor/mocha-0.9.5/lib/mocha/backtrace_filter.rb
dradis-mediawiki-3.18.0 test/vendor/mocha-0.9.5/lib/mocha/backtrace_filter.rb
dradis-mediawiki-3.17.0 test/vendor/mocha-0.9.5/lib/mocha/backtrace_filter.rb