Object
Exception raised when an unexpected method is invoked
@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
# 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.