method
assert_not_send
v2_1_10 -
Show latest stable
- Class:
Test::Unit::Assertions
assert_not_send(send_ary, m = nil)public
Passes if the method send doesn’t return a true value.
send_array is composed of:
-
A receiver
-
A method
-
Arguments to the method
Example:
assert_not_send([[1, 2], :member?, 1]) # -> fail assert_not_send([[1, 2], :member?, 4]) # -> pass