class RuboCop::Cop::Minitest::AssertKindOf


assert_kind_of(Class, object, ‘message’)
assert_kind_of(Class, object)
# good
assert(object.is_a?(Class), ‘message’)
assert(object.is_a?(Class))
# ‘is_a?` is an alias for `kind_of?`
# bad
assert(object.kind_of?(Class), ’message’)
assert(object.kind_of?(Class))
# bad
@example
over ‘assert(object.kind_of?(Class))`.
Enforces the test to use `assert_kind_of(Class, object)`