Sha256: 5db2393faa2d086ce0cf3e5e9eda44a55284ac7a488d5d33c6dedfd4f7ec8f19
Contents?: true
Size: 412 Bytes
Versions: 169
Compression:
Stored size: 412 Bytes
Contents
module RSpec module Matchers module BuiltIn class Cover include BaseMatcher def initialize(*expected) super(expected) end def matches?(range) expected.all? {|e| super(range).cover?(e)} end def does_not_match?(range) @actual = range expected.none? {|e| range.cover?(e)} end end end end end
Version data entries
169 entries across 71 versions & 9 rubygems