Flowdock
method

assert_send

Importance_1
assert_send(send_ary, m = nil) public

Passes if the method send returns a true value.

send_array is composed of:

  • A receiver

  • A method

  • Arguments to the method

Example:

assert_send([[1, 2], :member?, 1]) # -> pass
assert_send([[1, 2], :member?, 4]) # -> fail
Show source
Register or log in to add new notes.