Parent

Methods

Class/Module Index [+]

Quicksearch

Mocha::StubbingError

Exception raised when stubbing a particular method is not allowed.

@see Configuration.prevent

Public Class Methods

new(message = nil, backtrace = []) click to toggle source

@private

# File lib/mocha/stubbing_error.rb, line 11
def initialize(message = nil, backtrace = [])
  super(message)
  filter = BacktraceFilter.new
  set_backtrace(filter.filtered(backtrace))
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.