Sha256: bd37d2dc36fcb3e7375d7af075e751e4092249dcbe80655a2fc402322aeb712c
Contents?: true
Size: 426 Bytes
Versions: 66
Compression:
Stored size: 426 Bytes
Contents
module RSpec module Matchers module BuiltIn class Cover < BaseMatcher def initialize(*expected) @expected = expected end def matches?(range) @actual = range @expected.all? { |e| 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
66 entries across 66 versions & 19 rubygems