Ruby 1.9.3 リファレンスマニュアル > ライブラリ一覧 > minitest/specライブラリ > Moduleクラス > infect_with_assertions

instance method Module#infect_with_assertions

infect_with_assertions(positive_prefix, negative_prefix, skip_regexp, map = {}) -> () [added by minitest/spec]

BDD 風にテストを書くために使用するメソッド群を定義します。

[PARAM] positive_prefix:
assert の代わりのプレフィックスを指定します。
[PARAM] negative_prefix:
refute の代わりのプレフィックスを指定します。
[PARAM] skip_regexp:
この正規表現にマッチしたメソッドは定義しません。
[PARAM] map:
メソッド名の変換規則のハッシュを指定します。
class Module