Sha256: 22ac68eb046756bc552fe3dbc495816d83fde05b67fa88756143ebbb0547a713
Contents?: true
Size: 443 Bytes
Versions: 1
Compression:
Stored size: 443 Bytes
Contents
module Mocha class ExpectationError < StandardError LIB_DIRECTORY = File.expand_path(File.join(File.dirname(__FILE__), "..")) + File::SEPARATOR def initialize(message = nil, backtrace = [], lib_directory = LIB_DIRECTORY) super(message) filtered_backtrace = backtrace.reject { |location| Regexp.new(lib_directory).match(File.expand_path(location)) } set_backtrace(filtered_backtrace) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mocha-0.5.6 | lib/mocha/expectation_error.rb |