Flowdock
method

assert_respond_to

Importance_1
assert_respond_to(obj, meth, msg = nil) public

Tests if the given Object responds to method.

An optional failure message may be provided as the final argument.

assert_respond_to("hello", :reverse)  #Succeeds
assert_respond_to("hello", :does_not_exist)  #Fails
Show source
Register or log in to add new notes.