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

instance method Test::Unit::Assertions#assert_raises

assert_raises(*args, &block) -> object

Test::Unit::Assertions#assert_raise のエイリアスです。

[PARAM] args:
Test::Unit::Assertions#assert_raise にそのまま渡します。
[EXCEPTION] Test::Unit::AssertionFailedError:
assert が失敗した時に発生します。

[SEE_ALSO] Test::Unit::Assertions#assert_raise

module Test::Unit::Assertions