Sha256: 7fa2e1f1548030b4b218dfcf40a94aa9f62e5be3fc400303b3c26a49b380d471
Contents?: true
Size: 631 Bytes
Versions: 5
Compression:
Stored size: 631 Bytes
Contents
# @!method include_regexp(regexp) # This matchers checks if items of an <array> matches regexp # # @param [Regexp] regexp # The regular expression to use # # @return [TrueClass, FalseClass] The result # # false: # * if regexp does not match # true: # * if regexp matches # # @example Use matcher # # RSpec.describe do # it { expect(%w(asdf qwert)).to include_regexp(/asdf/) } # end RSpec::Matchers.define :include_regexp do |expected| match do |actual| warn('The use of "include_regexp"-matchers is deprecated. It will be removed soon.') !actual.grep(expected).empty? end end
Version data entries
5 entries across 5 versions & 1 rubygems