# File test/unit/assertions.rb, line 136def assert_respond_to(object, method, message="")
_wrap_assertion {
assert(method.kind_of?(Symbol) || method.kind_of?(String), "The method argument to #assert_respond_to should be specified as a Symbol or a String.")
full_message = build_message(message, object, object.class, method) {
| arg1, arg2, arg3 |
"<#{arg1}>\n" +
"of type <#{arg2}>\n" +
"expected to respond_to?<#{arg3}>"
}
assert_block(full_message) {
object.respond_to?(method)
}
}
end