# File test/unit/assertions.rb, line 123 def assert_respond_to(object, method, message="") _wrap_assertion { full_message = build_message(message, object, method) { | arg1, arg2 | "Expected <#{arg1}> of type <#{Message.convert(object.class)}> to respond_to? <#{arg2}>" } assert_block(full_message) { object.respond_to?(method) } } end