# File test/unit/assertions.rb, line 120def assert_kind_of(klass, object, message="")
_wrap_assertion {
assert(klass.kind_of?(Module), "The first parameter to assert_kind_of should be a kind_of Module.")
full_message = build_message(message, object, klass) {
| arg1, arg2 |
"<#{arg1}>\n" +
"expected to be kind_of?<#{arg2}>"
}
assert_block(full_message) {
object.kind_of?(klass)
}
}
end