Parent

Methods

Class Index [+]

Quicksearch

Mocha::UnexpectedInvocation

Exception raised when an unexpected method is invoked

Public Class Methods

new(mock, symbol, *arguments) click to toggle source

@private

    # File lib/mocha/unexpected_invocation.rb, line 7
 7:     def initialize(mock, symbol, *arguments)
 8:       @mock = mock
 9:       @method_matcher = MethodMatcher.new(symbol)
10:       @parameters_matcher = ParametersMatcher.new(arguments)
11:     end

Public Instance Methods

to_s() click to toggle source

@private

    # File lib/mocha/unexpected_invocation.rb, line 14
14:     def to_s
15:       method_signature = "#{@mock.mocha_inspect}.#{@method_matcher.mocha_inspect}#{@parameters_matcher.mocha_inspect}"
16:       "unexpected invocation: #{method_signature}\n"
17:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.