Sha256: ef89136cad2104eba045b20f7493c167ad98dcaf27d1175de9a5a1586783bcd1
Contents?: true
Size: 457 Bytes
Versions: 23
Compression:
Stored size: 457 Bytes
Contents
require 'mocha/backtrace_filter' require 'mocha/expectation_error' module Mocha class ExpectationErrorFactory class << self attr_accessor :exception_class def build(message = nil, backtrace = []) self.exception_class ||= ExpectationError exception = exception_class.new(message) filter = BacktraceFilter.new exception.set_backtrace(filter.filtered(backtrace)) exception end end end end
Version data entries
23 entries across 18 versions & 3 rubygems