# File test/unit/assertions.rb, line 109 def 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 | "Expected <#{arg1}> to be kind_of?<#{arg2}>" } assert_block(full_message) { object.kind_of?(klass) } } end