Exception: Mocha::ExpectationError
- Defined in:
- lib/mocha/expectation_error.rb
Instance Method Summary collapse
-
#initialize(message = nil, backtrace = []) ⇒ ExpectationError
constructor
A new instance of ExpectationError.
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( = nil, backtrace = []) super() filter = BacktraceFilter.new set_backtrace(filter.filtered(backtrace)) end |