Edited at

テスト対象がArrayなどに含まれるかを試すMatcher(※ただし1.3向け)

More than 5 years have passed since last update.

Spec::Matchers.define :member_of do |array|

match do |value|
array.include?(value)
end
end