Ruby 1.9.2 リファレンスマニュアル > ライブラリ一覧 > test/unit/assertionsライブラリ > Test::Unit::Assertionsモジュール > assert_respond_to

instance method Test::Unit::Assertions#assert_respond_to

assert_respond_to(object, method, message="") -> ()

object.respond_to?(method) が真ならパスします。

[EXCEPTION] Test::Unit::AssertionFailedError:
assert が失敗した時に発生します。