# File test/unit/assertions.rb, line 330 def assert_send(send_array, message="") _wrap_assertion { assert_instance_of(Array, send_array, "assert_send requires an array of send information") assert(send_array.size >= 2, "assert_send requires at least a receiver and a message name") full_message = build_message(message, send_array[0], send_array[1], send_array[2..-1]) { |arg1, arg2, arg3| "Expected <#{arg1}> to respond to <#{arg2}(#{arg3})> with true" } assert_block(full_message) { send_array[0].__send__(send_array[1], *send_array[2..-1]) } } end