Sha256: dc198f5228df626d788b6457b525bdad73c6e2ee8ea452cdb78754cdc321fdc2
Contents?: true
Size: 644 Bytes
Versions: 45
Compression:
Stored size: 644 Bytes
Contents
require File.join(File.dirname(__FILE__), "..", "test_helper") require 'mocha/backtrace_filter' class BacktraceFilterTest < Test::Unit::TestCase include Mocha def test_should_exclude_mocha_locations_from_backtrace mocha_lib = "/username/workspace/mocha_wibble/lib/" backtrace = [ mocha_lib + 'exclude/me/1', mocha_lib + 'exclude/me/2', '/keep/me', mocha_lib + 'exclude/me/3'] filter = BacktraceFilter.new(mocha_lib) assert_equal ['/keep/me'], filter.filtered(backtrace) end def test_should_determine_path_for_mocha_lib_directory assert_match Regexp.new("/lib/$"), BacktraceFilter::LIB_DIRECTORY end end
Version data entries
45 entries across 45 versions & 9 rubygems