Sha256: 1313385d20add29a4043a19e3c175d12f91997a04b5083329e6a4d50558ec3e0
Contents?: true
Size: 546 Bytes
Versions: 7385
Compression:
Stored size: 546 Bytes
Contents
module RSpec module Matchers module BuiltIn # @api private # Provides the implementation for `cover`. # Not intended to be instantiated directly. 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
7,385 entries across 7,295 versions & 131 rubygems