Exception: Mocha::ExpectationError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/mocha/expectation_error.rb

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, backtrace = []) ⇒ ExpectationError

Returns a new instance of ExpectationError.



7
8
9
10
11
# File 'lib/mocha/expectation_error.rb', line 7

def initialize(message = nil, backtrace = [])
  super(message)
  filter = BacktraceFilter.new
  set_backtrace(filter.filtered(backtrace))
end