Sha256: 5ddae62441a16772cced6d4cf6af2664177d356b8cce59bc9f6248d1f1df7bb8
Contents?: true
Size: 367 Bytes
Versions: 134
Compression:
Stored size: 367 Bytes
Contents
module Matchers def contain(expected) simple_matcher("contain #{expected.inspect}") do |given, matcher| matcher.failure_message = "expected #{given.inspect} to contain #{expected.inspect}" matcher.negative_failure_message = "expected #{given.inspect} not to contain #{expected.inspect}" given.index expected end end end World(Matchers)
Version data entries
134 entries across 129 versions & 34 rubygems