module Mocha::ParameterMatchers

def instance_of(klass)

Other tags:
    Example: Actual parameter is not an instance of +String+. -
    Example: Actual parameter is an instance of +String+. -

Other tags:
    See: Kernel#instance_of? -
    See: Expectation#with -

Returns:
  • (InstanceOf) - parameter matcher.

Parameters:
  • klass (Class) -- expected class.
def instance_of(klass)
  InstanceOf.new(klass)
end