module Mocha::ParameterMatchers

def is_a(klass) # rubocop:disable Naming/PredicateName

Other tags:
    Example: Actual parameter is not a +Integer+. -
    Example: Actual parameter is a +Integer+. -

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

Returns:
  • (IsA) - parameter matcher.

Parameters:
  • klass (Class) -- expected class.
def is_a(klass) # rubocop:disable Naming/PredicateName
  IsA.new(klass)
end