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

instance method Test::Unit::Assertions#assert_no_match

assert_no_match(regexp, string, message="") -> ()

regexp !~ string が真ならばパスします。

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