Parent

Methods

Files

Mocha::UnexpectedInvocation

Public Class Methods

new(mock, symbol, *arguments) click to toggle source
   # File lib/mocha/unexpected_invocation.rb, line 5
5:     def initialize(mock, symbol, *arguments)
6:       @mock = mock
7:       @method_matcher = MethodMatcher.new(symbol)
8:       @parameters_matcher = ParametersMatcher.new(arguments)
9:     end

Public Instance Methods

to_s() click to toggle source
    # File lib/mocha/unexpected_invocation.rb, line 11
11:     def to_s
12:       method_signature = "#{@mock.mocha_inspect}.#{@method_matcher.mocha_inspect}#{@parameters_matcher.mocha_inspect}"
13:       "unexpected invocation: #{method_signature}\n"
14:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.