Sha256: 74fdf25edfeaadb4be9dd9a7dcd85b2d9feebf4fc60dcd5d890a2514a24aec33
Contents?: true
Size: 504 Bytes
Versions: 256
Compression:
Stored size: 504 Bytes
Contents
RSpec::Matchers.define :include_method do |expected| match do |actual| actual.map { |m| m.to_s }.include?(expected.to_s) end end module RSpec module Matchers def fail raise_error(RSpec::Expectations::ExpectationNotMetError) end def fail_with(message) raise_error(RSpec::Expectations::ExpectationNotMetError, message) end def fail_matching(message) raise_error(RSpec::Expectations::ExpectationNotMetError, /#{Regexp.escape(message)}/) end end end
Version data entries
256 entries across 155 versions & 27 rubygems