Sha256: d32ee4b5d11386dea241332378f6e35225f41ec7a3f2cc25384c420c71bcc126
Contents?: true
Size: 370 Bytes
Versions: 7
Compression:
Stored size: 370 Bytes
Contents
module RSpec module Core module Matchers def fail raise_error(::RSpec::Expectations::ExpectationNotMetError) end def fail_with(message) raise_error(::RSpec::Expectations::ExpectationNotMetError, message) end end end end RSpec::Matchers.define :be_one_of do |*list| match do |item| list.include? item end end
Version data entries
7 entries across 7 versions & 1 rubygems