module Rspec::Mocks::ArgumentMatchers

def instance_of(klass)

Passes if arg.instance_of?(klass)
def instance_of(klass)
  InstanceOf.new(klass)
end