class Mocha::ParameterMatchers::IsA

Parameter matcher which matches when actual parameter is a specific class.

def initialize(klass)

Other tags:
    Private: -
def initialize(klass)
  @klass = klass
end

def matches?(available_parameters)

Other tags:
    Private: -
def matches?(available_parameters)
  parameter = available_parameters.shift
  parameter.is_a?(@klass)
end

def mocha_inspect

Other tags:
    Private: -
def mocha_inspect
  "is_a(#{@klass.mocha_inspect})"
end