class Mocha::ParameterMatchers::InstanceOf
Parameter matcher which matches when actual parameter is an instance of the specified class.
def initialize(klass)
- Private: -
def initialize(klass) @klass = klass end
def matches?(available_parameters)
- Private: -
def matches?(available_parameters) parameter = available_parameters.shift parameter.instance_of?(@klass) end
def mocha_inspect
- Private: -
def mocha_inspect "instance_of(#{@klass.mocha_inspect})" end