Ruby 1.9.2 リファレンスマニュアル > ライブラリ一覧 > minitest/specライブラリ > Objectクラス > wont_include

instance method Object#wont_include

wont_include(object) -> true [added by minitest/spec]

自身にオブジェクトが含まれていない場合、検査にパスしたことになります。

[PARAM] object:
任意のオブジェクトを指定します。
[EXCEPTION] MiniTest::Assertion:
自身が include? メソッドを持たない場合に発生します。 与えられたコレクションにオブジェクトが含まれている場合に発生します。

[SEE_ALSO] MiniTest::Assertions#refute_includes